谢谢!请问第5个问题,通常的顺序是如何的?比如 void CMyDlg::PostNcDestroy() { // TODO: Add your specialized code here and/or call the base class delete this; CDialog::PostNcDestroy(); } 按通常的顺序,自己的代码(delete this),应该在CDialog::PostNcDestroy()之前还是之后呢? 是否特殊情况特殊考虑还是有通常的顺序?
void CXXXdlg::PostNcDestroy()
{
// TODO: Add your specialized code here and/or call the base class m_pParent->SendMessage(WM_SETUP_DELETE); // 让视图类做些处理 m_pParent = NULL;
delete this;
CDialog::PostNcDestroy();
}