CWnd::OnNcDestroy

由框架调用,当销毁时非工作区,并且调用的最后一个成员函数,当销毁时Windows窗口。

afx_msg void OnNcDestroy( );

备注

默认实现某种执行清理,然后调用虚成员函数 PostNcDestroy

重写 PostNcDestroy,如果要为您执行清理,如 delete this 操作。 如果重写 OnNcDestroy,则必须对您的基类的 OnNcDestroy 确保为窗口内部分配的所有内存得以释放。

要求

Header: afxwin.h

请参见

参考

CWnd 类

层次结构图

CWnd::DestroyWindow

CWnd::OnNcCreate

WM_NCDESTROY

CWnd::Default

CWnd::PostNcDestroy