X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f592a93992adce7d38b163beadd10204b495d94c..5fff51b517d5d237d7cc155cc94526989518263d:/src/msw/msgdlg.cpp?ds=sidebyside diff --git a/src/msw/msgdlg.cpp b/src/msw/msgdlg.cpp index 02da8a94d8..e44ca16d1a 100644 --- a/src/msw/msgdlg.cpp +++ b/src/msw/msgdlg.cpp @@ -586,7 +586,9 @@ int wxMessageDialog::ShowMessageBox() // do show the dialog int msAns = MessageBox(hWnd, message.t_str(), m_caption.t_str(), msStyle); - return MSWTranslateReturnCode(msAns); + int ret = MSWTranslateReturnCode(msAns); + SetReturnCode(ret); + return ret; } int wxMessageDialog::ShowModal() @@ -621,7 +623,9 @@ int wxMessageDialog::ShowModal() msAns = IDOK; } - return MSWTranslateReturnCode( msAns ); + int ret = MSWTranslateReturnCode(msAns); + SetReturnCode(ret); + return ret; } #endif // wxHAS_MSW_TASKDIALOG