I am using VS2010
for my MFC
SDI application.
In MainFrame
Class in OnCreate(LPCREATESTRUCT lpCreateStruct)
function I am opening one dialog box and on IDCANCLE
replay from the Dialog box I want to close my application.
I am using following code for the same in onCreate
Function.
CTermsConditionDlg objTNCDlg;
if(!objTNCDlg.DoModal() == IDCANCLE){
return -1;
}
Now my Question is after return Statement the application is Showing message box as shown in Image.
I want to disable this message box and close my application. Can any one help how can I do That. Thank You in Advance.