// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-
+
#ifdef __GNUG__
#pragma implementation "xh_frame.h"
#endif
}
wxObject *wxFrameXmlHandler::DoCreateResource()
-{
- wxFrame *frame = wxDynamicCast(m_instance, wxFrame);
-
- wxASSERT_MSG(frame, _("XRC resource: Cannot create dialog without instance."));
-
+{
+ XRC_MAKE_INSTANCE(frame, wxFrame);
+
frame->Create(m_parentAsWindow,
GetID(),
GetText(wxT("title")),
SetupWindow(frame);
CreateChildren(frame);
-
+
if (GetBool(wxT("centered"), FALSE))
frame->Centre();
-
+
return frame;
}