windows_programming_notes.nbk: Home | Index | Next Page: WM_NCHITTEST | Previous Page: WM_NCCREATE
The WM_NCDESTROY message informs a window that its nonclient area is being destroyed. The DestroyWindow function sends the WM_NCDESTROY message to the window following the WM_DESTROY message. WM_DESTROY is used to free the allocated memory object associated with the window.
The WM_NCDESTROY message is sent after the child windows have been destroyed. In contrast, WM_DESTROY is sent before the child windows are destroyed.
A window receives this message through its WindowProc function.
LRESULT CALLBACK WindowProc( HWND hwnd, // handle to window UINT uMsg, // WM_NCDESTROY WPARAM wParam, // not used LPARAM lParam // not used );
This message has no parameters.
If an application processes this message, it should return zero.
This message frees any memory internally allocated for the window.
Windows NT/2000 or later: Requires Windows NT 3.1 or later. Windows 95/98/Me: Requires Windows 95 or later. Header: Declared in Winuser.h; include Windows.h.
windows_programming_notes.nbk: Home | Index | Next Page: WM_NCHITTEST | Previous Page: WM_NCCREATE
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time