windows_programming_notes.nbk: Home | Index | Next Page: WM_CAPTURECHANGED | Previous Page: WM_CANCELJOURNAL
The WM_CANCELMODE message is sent to cancel certain modes, such as mouse capture. For example, the system sends this message to the active window when a dialog box or message box is displayed. Certain functions also send this message explicitly to the specified window regardless of whether it is the active window. For example, the EnableWindow function sends this message when disabling the specified window.
A window receives this message through its WindowProc function.
If an application processes this message, it should return zero.
When the WM_CANCELMODE message is sent, the DefWindowProc function cancels internal processing of standard scroll bar input, cancels internal menu processing, and releases the mouse capture.
windows_programming_notes.nbk: Home | Index | Next Page: WM_CAPTURECHANGED | Previous Page: WM_CANCELJOURNAL
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time