+ switch ( dialog.ShowModal() )
+ {
+ case wxID_YES:
+ wxLogStatus("You pressed \"Yes\"");
+ break;
+
+ case wxID_NO:
+ wxLogStatus("You pressed \"No\"");
+ break;
+
+ case wxID_CANCEL:
+ wxLogStatus("You pressed \"Cancel\"");
+ break;
+
+ default:
+ wxLogError("Unexpected wxMessageDialog return code!");
+ }