windows_programming_notes.nbk: Home | Index | Next Page: WM_CAPTURECHANGED | Previous Page: WM_CANCELJOURNAL


 WM_CANCELMODE

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.

Parameters

Return Value

If an application processes this message, it should return zero.

Remarks

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.

Notification Requirements


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