]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/except/except.cpp
added test for wxString::MakeLower,MakeUpper
[wxWidgets.git] / samples / except / except.cpp
index 04a13cff974cd6e25364297bd4d22e8a4f4c6e4e..e0747a4b4c513ebe968a2a4a0236d51a3b76be3b 100644 (file)
@@ -37,7 +37,8 @@
     #include "wx/button.h"
     #include "wx/sizer.h"
 
-    #include "wx/utils.h"               // for wxMessageBox
+    #include "wx/utils.h"
+    #include "wx/msgdlg.h"
 #endif
 
 // ----------------------------------------------------------------------------
@@ -216,7 +217,7 @@ void MyApp::OnUnhandledException()
 
 // frame constructor
 MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size, long style)
-       : wxFrame(NULL, -1, title, pos, size, style)
+       : wxFrame(NULL, wxID_ANY, title, pos, size, style)
 {
     // set the frame icon
     SetIcon(wxICON(mondrian));
@@ -302,7 +303,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 // ============================================================================
 
 MyDialog::MyDialog(wxFrame *parent)
-        : wxDialog(parent, -1, wxString(_T("Throw exception dialog")))
+        : wxDialog(parent, wxID_ANY, wxString(_T("Throw exception dialog")))
 {
     wxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);