X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdf565feca722eddb84168a95dbef329ba23d719..6f026b5b63fe7ccb025e84509886f74772b9df13:/src/xrc/xh_mdi.cpp diff --git a/src/xrc/xh_mdi.cpp b/src/xrc/xh_mdi.cpp index 4cc381ec7e..021934231e 100644 --- a/src/xrc/xh_mdi.cpp +++ b/src/xrc/xh_mdi.cpp @@ -1,9 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // Name: src/xrc/xh_mdi.cpp -// Purpose: XRC resource for dialogs +// Purpose: XRC resource for wxMDI // Author: David M. Falkinder & Vaclav Slavik // Created: 14/02/2005 -// RCS-ID: $Id$ // Copyright: (c) 2005 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -18,6 +17,7 @@ #if wxUSE_XRC && wxUSE_MDI #include "wx/xrc/xh_mdi.h" +#include "wx/mdi.h" #ifndef WX_PRECOMP #include "wx/intl.h" @@ -25,8 +25,6 @@ #include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE #endif -#include "wx/mdi.h" - IMPLEMENT_DYNAMIC_CLASS(wxMdiXmlHandler, wxXmlResourceHandler) wxMdiXmlHandler::wxMdiXmlHandler() : wxXmlResourceHandler() @@ -89,7 +87,7 @@ wxWindow *wxMdiXmlHandler::CreateFrame() if ( !mdiParent ) { - wxLogError(wxT("Parent of wxMDIParentFrame must be wxMDIParentFrame.")); + ReportError("parent of wxMDIChildFrame must be wxMDIParentFrame"); return NULL; } @@ -118,7 +116,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);