*** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -103,36 +103,3 @@ int wxMessageDialog::ShowModal(void)
|
||||
return ans;
|
||||
}
|
||||
|
||||
/*
|
||||
* Common dialogs
|
||||
*
|
||||
*/
|
||||
|
||||
// Pop up a message box
|
||||
int wxMessageBox(const wxString& message, const wxString& caption, const long style,
|
||||
wxWindow *parent, const int x, const int y)
|
||||
{
|
||||
wxMessageDialog dialog(parent, message, caption, style);
|
||||
|
||||
int ans = dialog.ShowModal();
|
||||
switch ( ans )
|
||||
{
|
||||
case wxID_OK:
|
||||
return wxOK;
|
||||
break;
|
||||
case wxID_YES:
|
||||
return wxYES;
|
||||
break;
|
||||
case wxID_NO:
|
||||
return wxNO;
|
||||
break;
|
||||
default:
|
||||
case wxID_CANCEL:
|
||||
return wxCANCEL;
|
||||
break;
|
||||
}
|
||||
|
||||
return ans;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user