X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba5872682ca221f9f04f2794774f02b5ddf130ab..abd474ea63667f727940a009cc3e0b23ba9f418f:/src/xrc/xh_mdi.cpp?ds=sidebyside diff --git a/src/xrc/xh_mdi.cpp b/src/xrc/xh_mdi.cpp index 772c989229..50a7ed1cb7 100644 --- a/src/xrc/xh_mdi.cpp +++ b/src/xrc/xh_mdi.cpp @@ -18,12 +18,12 @@ #if wxUSE_XRC && wxUSE_MDI #include "wx/xrc/xh_mdi.h" +#include "wx/mdi.h" #ifndef WX_PRECOMP #include "wx/intl.h" #include "wx/log.h" #include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE - #include "wx/mdi.h" #endif IMPLEMENT_DYNAMIC_CLASS(wxMdiXmlHandler, wxXmlResourceHandler) @@ -88,7 +88,7 @@ wxWindow *wxMdiXmlHandler::CreateFrame() if ( !mdiParent ) { - wxLogError(wxT("Parent of wxMDIChildFrame must be wxMDIParentFrame.")); + ReportError("parent of wxMDIChildFrame must be wxMDIParentFrame"); return NULL; } @@ -117,7 +117,7 @@ wxObject *wxMdiXmlHandler::DoCreateResource() { wxFrame* f = wxDynamicCast(frame, wxFrame); if (f) - f->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON)); + f->SetIcons(GetIconBundle(wxT("icon"), wxART_FRAME_ICON)); } SetupWindow(frame);