X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be5a51fb592f3fa2ba38ac6cd1e488d6d806058c..15e2adbd3b3f0904851f73995fc9bf3c83d122d3:/samples/except/except.cpp?ds=sidebyside diff --git a/samples/except/except.cpp b/samples/except/except.cpp index 04a13cff97..aa217e4afa 100644 --- a/samples/except/except.cpp +++ b/samples/except/except.cpp @@ -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,10 +217,10 @@ 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)); + SetIcon(wxICON(sample)); #if wxUSE_MENUS // create a menu bar @@ -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);