Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top