#include "wx/button.h"
#include "wx/sizer.h"
- #include "wx/utils.h" // for wxMessageBox
+ #include "wx/utils.h"
+ #include "wx/msgdlg.h"
#endif
// ----------------------------------------------------------------------------
// 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));
// ============================================================================
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);