非模态对话框内存释放

重写PostNcDestroy方法:添加delete this;即可
void CPage2Dlg::PostNcDestroy()
{
	// TODO: 在此添加专用代码和/或调用基类
	delete this;
	CDialogEx::PostNcDestroy();
}

你可能感兴趣的:(非模态对话框内存释放)