Partager via


CWindowImpl::OnFinalMessage

Called after receiving the last message (typically WM_NCDESTROY).

virtual void OnFinalMessage( 
   HWND hWnd  
);

Parameters

  • hWnd
    [in] A handle to the window being destroyed.

Remarks

The default implementation of OnFinalMessage does nothing, but you can override this function to handle cleanup before destroying a window. If you want to automatically delete your object upon the window destruction, you can call delete this; in this function.

Requirements

Header: atlwin.h

See Also

Reference

CWindowImpl Class

CWindowImpl::GetWindowProc

CWindowImpl::UnsubclassWindow