|
-
September 2nd, 2010, 04:57 AM
#1
HTCLOSE or HTSYSMENU
In following MSDN documentation
http://msdn.microsoft.com/en-us/libr...18(VS.85).aspx
for WM_NCHITTEST message It is stated like this :
The return value of the DefWindowProc function is one of the following values, indicating the position of the cursor hot spot.
.....
.....
HTCLOSE - 20 - In a Close button.
.....
HTSYSMENU - 3 - In a window menu or in a Close button in a child window.
.....
But i could not see HTSYSMENU being returned for a "Close button in a child window".
Tried different scenarios like SDI/MDI , dialog with a child dialog etc .
Can anybody explain a scenario for HTSYSMENU being returned for a "Close button in a child window".
Thanks
Vijesh Vijay
-
September 2nd, 2010, 05:36 AM
#2
Re: HTCLOSE or HTSYSMENU
I may be wrong but I guess that "In a window menu or in a Close button in a child window" means MDI child frame being maximized (and neither SDI nor dialogs)
Victor Nijegorodov
-
September 3rd, 2010, 02:29 AM
#3
Re: HTCLOSE or HTSYSMENU
Sorry , it didn't worked.
Checked by creating a MDI application but mouse over returns HTCLOSE normally for MDI Child. When the window is maximised hovering over the min, max, close doesn't gives messages to the child window. But it returns HTMENU to the MDI parent.
Any other suggestions ??
-
September 3rd, 2010, 03:14 AM
#4
Re: HTCLOSE or HTSYSMENU
Yes, I can agree... I couldn't get HTSYSMENU for a Close button either. I always get either HTCLOSE for it (if it is a dialog or non-maximized child frame) or HTMENU for maximized child frame. 
Try to report this problem to "MS Connect"...
Victor Nijegorodov
-
September 3rd, 2010, 12:10 PM
#5
Re: HTCLOSE or HTSYSMENU
It's a feature, not a bug. 
Well, its seems that documentation of WM_NCHITTEST / HTSYSMENU has to be a little bit revised.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|