tags:

views:

117

answers:

2

I want my window to close as soon as the mouse hovers on the close button on the non client area. I tried to trap wm_ncmousemove but i could not find the hittest for the close button. Any help please?

+1  A: 

WM_NCHITTEST

Francis
+1  A: 

Use HTCLOSE returned after processing WM_NCHITTEST

Neal