mouse event on dialog caption
-
Hi! I want to create a dialog which resize to only caption when user double-click the caption area, then expand back when user double-click the caption again. How can we detect that mouse event in the dialog WindowProc? left-click, right-click, double-click? I tried WM_LBUTTONDOWN, WM_LBUTTONUP, WM_LBUTTONDBLCLK, but it works only in dialog client area. Thank you, Sovann. Everything should be made as simple as possible, but not simpler [Albert Einstein]
-
Hi! I want to create a dialog which resize to only caption when user double-click the caption area, then expand back when user double-click the caption again. How can we detect that mouse event in the dialog WindowProc? left-click, right-click, double-click? I tried WM_LBUTTONDOWN, WM_LBUTTONUP, WM_LBUTTONDBLCLK, but it works only in dialog client area. Thank you, Sovann. Everything should be made as simple as possible, but not simpler [Albert Einstein]
try this, WM_NCLBUTTONDBLCLK The WM_NCLBUTTONDBLCLK message is posted when the user double-clicks the left mouse button while the cursor is within the nonclient area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. Arjan.