Try keeping the oonok call outside swich... it shuld work.... as i have done below void CCreateDlg::OnOk() { // TODO: Add your control notification handler code here int iResults; // This variable will capture the button selection // Ask the user iResults = MessageBox("Would u like to add documetns to the index now", "Desktop Search",MB_YESNO | MB_ICONQUESTION); // Determine which button the user clicked // Give the user a message showing which button was clicked switch (iResults) { case IDYES: // The Yes button? //call the Update dialog window if user press yes m_dUpdateDlg.DoModal (); break; case IDNO: // The No button? break; } OnOK(); }
A
abhishekks
@abhishekks
Posts
-
Closing Dialog window -
Closing Dialog windowwhere have u put in the code to for calling the constructor for dialogs..?
-
IHTMLSelectElement onchange eventcan spmebody pls advice me how to fire IHTMLSelectElement onchange event in mfc .. i tried IHTMLWindow2 execscript......... but this does not work since the javascript function uses this pointer
-
IHTMLSelectElement onchange eventcan spmebody pls advice me how to fire IHTMLSelectElement onchange event in mfc...i tried IHTMLWindow2 execscript......... but this does not work since the javascript function uses this pointer
-
IHTMLSelectElement onchange eventcan spmebody pls advice me how to fire IHTMLSelectElement onchange event.. i tried IHTMLWindow2 execscript......... but this does not work since the javascript function uses this pointer