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.
wParam
This parameter is not used.
lParam
This parameter is not used.
This message frees any memory internally allocated for the window.