18.VC(custom)-销毁窗口最佳时机

自己看了这篇文,觉得很好,所以转了过来,大家共享,其实在msdn中输入destroying windows搜索,就可以发现

Called by the default OnNcDestroy member function after the window has been destroyed.(PostNcDestroy( )在窗口销毁后被OnNcDestroy成员函数调用,所以可以在PostNcDestroy( )中释放资源)

 
virtual void PostNcDestroy( );

Remarks

Derived classes can use this function for custom cleanup such as the deletion of the this pointer.

(派生类可以使用PostNcDestroy( )做一些自定义清理工作,如删除rhis指针)------>英语很烂,反正是这意思,嘿嘿,别拍砖。

http://msdn.microsoft.com/en-us/library/5zba4hah.aspx

你可能感兴趣的:(windows,function,Blog,delete,Class)