WM_NCDESTROY

This 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. This message is used to free the allocated memory block associated with the window.

Parameter Description  

wParam Is not used.  
lParam Is not used.  

Default Action

This message frees any memory internally allocated for the window.