diff --git a/ResizableComboBox/Demo.cpp b/ResizableComboBox/Demo.cpp index 7ba62c7..36f6d38 100644 --- a/ResizableComboBox/Demo.cpp +++ b/ResizableComboBox/Demo.cpp @@ -41,13 +41,8 @@ BOOL CDemoApp::InitInstance() CDemoDlg dlg; m_pMainWnd = &dlg; - int nResponse = dlg.DoModal(); - if (nResponse == IDOK) - { - } - else if (nResponse == IDCANCEL) - { - } + + dlg.DoModal(); // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application's message pump.