How to handle WM_NCLBUTTONUP in my window.
-
hiiii, I want to handle WM_NCLBUTTONUP in my doc/view application. I already add this message handler for my window. But it was not responded when my mouse was up in the caption bar of my window.Please give suggestion for how to handle the WM_NCLBUTTONUP? Thanks in advance... ss
-
hiiii, I want to handle WM_NCLBUTTONUP in my doc/view application. I already add this message handler for my window. But it was not responded when my mouse was up in the caption bar of my window.Please give suggestion for how to handle the WM_NCLBUTTONUP? Thanks in advance... ss
First thing I would do is handle (at least as a test) WM_NCLBUTTONDOWN. Its quite possible that something is grabbing the down button, and then capturing the mouse until an UP comes along, bypassing you. If you can't see the DOWN message, then you've probably not added the handler properly. Another possibility... The view itself doesn't actually *have* a caption bar - its provided by the CChildFrame in a non-maximised MDI frame, or the CMainFrame in a SDI app, or a maximised view. So you may be subclassing the wrong window! Iain.