AddWindowStyles();
}
-wxFrame *wxMdiXmlHandler::CreateFrame()
+wxWindow *wxMdiXmlHandler::CreateFrame()
{
if (m_class == wxT("wxMDIParentFrame"))
{
wxObject *wxMdiXmlHandler::DoCreateResource()
{
- wxFrame *frame = CreateFrame();
+ wxWindow *frame = CreateFrame();
if (HasParam(wxT("size")))
frame->SetClientSize(GetSize());
if (HasParam(wxT("pos")))
frame->Move(GetPosition());
if (HasParam(wxT("icon")))
- frame->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON));
+ {
+ wxFrame* f = wxDynamicCast(frame, wxFrame);
+ if (f)
+ f->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON));
+ }
SetupWindow(frame);