// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "xh_mdi.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
wxMDIParentFrame *mdiParent = wxDynamicCast(m_parent, wxMDIParentFrame);
if ( !mdiParent )
- wxLogError(wxT("Parent is not of type wxMDIParentFrame."));
+ {
+ wxLogError(wxT("Parent of wxMDIParentFrame must be wxMDIParentFrame."));
+ return NULL;
+ }
XRC_MAKE_INSTANCE(frame, wxMDIChildFrame);