Поделиться через


CWindowImpl::OnFinalMessage

Called after receiving the last message (typically WM_NCDESTROY).

virtual void OnFinalMessage(
   HWND hWnd 
);

Параметры

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

Заметки

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.

Требования

Header: atlwin.h

См. также

Основные понятия

CWindowImpl Class

CWindowImpl Members

CWindowImpl::GetWindowProc

CWindowImpl::UnsubclassWindow