void StartUpAnimation::OnCancel() { // TODO: Add extra cleanup here if (NULL != pCgobangDlg) { delete pCgobangDlg; pCgobangDlg = NULL; // CString msg; // msg.Format("ok"); // MessageBox(msg); } if (nid.hWnd == this->m_hWnd) { DeleteTray(); } CDialog::OnCancel(); }
BOOL CAutoDialDlg::DestroyWindow() { DeleteTray(); return CDialog::DestroyWindow(); }