Is there a way to get mouse events from a non-client area of a control?
I tried to override the WndProc of the control but it doesnt seem to get any WM_NCMOUSEMOVE Messages.
I also seek a way to change the mouse cursor when its on the non-client area, even if i change the cursor property of the control the cursor still becomes an arrow when the mouse is over the non-client area
thanks in advance
To have mouse messages over the non-client area, you should first have a non-client area. To get that, handle: WM_NCCALCSIZE to notify windows about the non-client-area. After that, you should deal with WM_NCHITTEST and return a non-client area value, like HTTOPLEFT or HTCAPTION to notify windows that the mouse is currently NOT on the Client Area.
Then you will receive WM_NCMOUSEMOVE messages.
For details on those messages: