Pergunta

I'm coding a custom background non rectangular window with buttons such as minimize and close in bitmaps. Here is my code just for now The problem is the custom window does not receive mouse messages while hovering over non zero alpha regions.

Foi útil?

Solução

Since minimize and close buttons are outside window client area, you need to capture WM_NCLBUTTONUP in addition to WM_LBUTTONUP

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top