- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
http://groups.google.com/groups?q=WM_NCLBUTTONUP+Dialog&hl=en
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Otherwise, you could overcome the problem by subclassing the dialog. Namely, every dialog has DefDlgProc as its window procedure; DefDlgProc calls your dialog-proc and continues default processing if you return FALSE, and otherwise exits. You can, however, insert another procedure in the subclassing chain using normal technique (SetWindowLong(GWL_WNDPROC), write an "ordinary" WndProc, catch the WM_NCLBUTTONUP there and call DefDlgProc otherwise). See MenuDialog sample on my home page.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the additional info. I will take at good look at your work arounds!.
There is another possible work around:
Set a flag, say bLBtnDn = .TRUE. in case (WM_NCLBUTTONDOWN)
Then in case (WM_NCHITTEST) test the bLBtnDn flag. If it is true,
then test to see if the L mouse button is still down with the function
GetAsyncKeyState(VK_LBUTTON). If it is still down just return, if it is up process/executeassociated code, and setbLBtnDn = .FALSE..
There may be some issues with doing it this way that I am not aware of, but it seems to work, and the amount of processing needed to determine if the L mouse buttonhas been released in the NCarea (in my case the Caption area)appears to beminimal.
Message Edited by halcyong@fcc.net on 09-21-2005 06:27 AM
Message Edited by halcyong@fcc.net on 09-21-2005 06:32 AM

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page