git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27480
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/button.h"
#include "wx/sizer.h"
#include "wx/button.h"
#include "wx/sizer.h"
- #include "wx/utils.h" // for wxMessageBox
+ #include "wx/utils.h"
+ #include "wx/msgdlg.h"
#endif
// ----------------------------------------------------------------------------
#endif
// ----------------------------------------------------------------------------
// frame constructor
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size, long style)
// 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));
{
// set the frame icon
SetIcon(wxICON(mondrian));
// ============================================================================
MyDialog::MyDialog(wxFrame *parent)
// ============================================================================
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);
{
wxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);