开发者

Events for the border of a form?

开发者 https://www.devze.com 2023-04-12 08:38 出处:网络
I want to know when the user has the mouse over the border of a form. I also want to be able to know if its the top/bottom or left/right border.

I want to know when the user has the mouse over the border of a form. I also want to be able to know if its the top/bottom or left/right border. There does not seem to b开发者_C百科e any events for this. I have tried using MouseMove on the form but it only fires when it is "inside" the form.

I have tried looking at the Bounds property but that does not have any events. What can I do to solve this?


You have to override the WNDPROC method and look for WM_NC* messages.

This link should get you started: Mouse events from a non-client area of a control

0

精彩评论

暂无评论...
验证码 换一张
取 消