// 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()
msAns = IDOK;
}
- return MSWTranslateReturnCode( msAns );
+ int ret = MSWTranslateReturnCode(msAns);
+ SetReturnCode(ret);
+ return ret;
}
#endif // wxHAS_MSW_TASKDIALOG