开发者

Events for the border of a form?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜