/////////////////////////////////////////////////////////////////////////////
// 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$
#include "wx/xrc/xh_mdi.h"
#include "wx/mdi.h"
-#include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE
-#include "wx/log.h"
-#include "wx/intl.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/intl.h"
+ #include "wx/log.h"
+ #include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxMdiXmlHandler, wxXmlResourceHandler)
if ( !mdiParent )
{
- wxLogError(wxT("Parent of wxMDIParentFrame must be wxMDIParentFrame."));
+ wxLogError(wxT("Parent of wxMDIChildFrame must be wxMDIParentFrame."));
return NULL;
}
IsOfClass(node, wxT("wxMDIChildFrame")));
}
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_MDI