windows_programming_notes.nbk: Home | Index | Next Page: WM_RBUTTONDBLCLK | Previous Page: WM_QUEUESYNC


 WM_QUIT

The WM_QUIT message indicates a request to terminate an application and is generated when the application calls the PostQuitMessage function. It causes the GetMessage function to return zero.

Parameters

Return Value

This message does not have a return value because it causes the message loop to terminate before the message is sent to the application's window procedure.

Remarks

The WM_QUIT message is not associated with a window and therefore will never be received through a window's window procedure. It is retrieved only by the GetMessage or PeekMessage functions.

Do not post the WM_QUIT message using the PostMessage function; use PostQuitMessage

Notification Requirements


windows_programming_notes.nbk: Home | Index | Next Page: WM_RBUTTONDBLCLK | Previous Page: WM_QUEUESYNC


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time