I'm showing a dialog via this code:
Which is the default code provided by the wizard. However, when I remove the buttons and the code, the app disappears when enter is pressed.Code:BOOL CListworkApp::InitInstance() { CListworkDlg dlg; m_pMainWnd = &dlg; int nResponse = dlg.DoModal(); if (nResponse == IDOK) { } else if (nResponse == IDCANCEL) { } return FALSE; }
I'm assuming there's another method to show the dialog so that this doesn't happen?




Reply With Quote