Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Is there any method to dismiss the system modal dialog box programmatically?
EndDialog
to delete modelless dialog window void CRVDlg:: OnExit() { OnCancel(); } void CRVDlg::OnCancel() { DestroyWindow(); } void CRVDlg::PostNcDestroy() { CDialog::PostNcDestroy(); if(m_pParent) { (CVCDlg*)m_pParent)->Obj=NULL; } delete this; } JAYARAJ