windows_programming_notes.nbk: Home | Index | Next Page: window startup | Previous Page: window message path
The user starts the process by clicking the close button on the titlebar, or selecting a suitable menu item. This probably sends a WM_CLOSE message to the main window.
In response to the WM_CLOSE message, the main window calls the DestroyWindow function. This in turn sends WM_DESTROY and [WM_NCDESTROY] messages to the window.
In response to the WM_DESTROY message, the main window calls the PostQuitMessage function. This sends a WM_QUIT message to the application. This causes GetMessage to return zero, signaling the application to exit the message loop and the program.
49292 = 0xC08C
[WM_UNINITMENUPOPUP]
[WM_IME_SETCONTEXT]
windows_programming_notes.nbk: Home | Index | Next Page: window startup | Previous Page: window message path
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time