problem with modeless!...
Posted on 2000-04-17
my main application is a dialog based app.i created a modeless dialog box as below
CMDDlg *dlg= new CMDDlg;
m_pMainWnd = dlg;
i destroyed it using..
now my problem is that when the user presses the ESC key the dialog box vanishes.i want the dialog box to stay.
how can modify this?..what is the reason for the dialog box to vanish even after overriding the OnCancel() function?