WS_EX_LAYERED window does not receive mouse events

1.8k Views Asked by At

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.

1

There are 1 best solutions below

2
On BEST ANSWER

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