+ item->SetSubMenu( (wxMenu *)s.GetChild() );
+#endif
+}
+
+/////////////////////////////////////////////////////////////////////////////
+
+void WXSERIAL(wxPanel)::StoreObject(wxObjectOutputStream& s)
+{
+ WXSERIAL(wxWindow)::StoreObject(s);
+}
+
+void WXSERIAL(wxPanel)::LoadObject(wxObjectInputStream& s)
+{
+ WXSERIAL(wxWindow)::LoadObject(s);
+
+ if (s.SecondCall())
+ return;
+
+ ((wxPanel *)Object())->Create(m_parent, m_id, wxPoint(m_x, m_y),
+ wxSize(m_w, m_h), m_style, m_name);
+}
+
+/////////////////////////////////////////////////////////////////////////////
+
+void WXSERIAL(wxDialog)::StoreObject(wxObjectOutputStream& s)
+{
+ WXSERIAL(wxWindow)::StoreObject(s);
+}
+
+void WXSERIAL(wxDialog)::LoadObject(wxObjectInputStream& s)
+{
+ WXSERIAL(wxWindow)::LoadObject(s);
+
+ if (s.SecondCall())
+ return;
+
+ ((wxDialog *)Object())->Create(m_parent, m_id, m_title, wxPoint(m_x, m_y),
+ wxSize(m_w, m_h), m_style, m_name);
+}
+
+/////////////////////////////////////////////////////////////////////////////
+
+void WXSERIAL(wxMDIParentFrame)::StoreObject(wxObjectOutputStream& s)
+{
+ wxMDIParentFrame *frame = (wxMDIParentFrame *)Object();
+
+ if (s.FirstStage()) {
+ s.AddChild(frame->GetClientWindow());
+ WXSERIAL(wxMDIParentFrame)::StoreObject(s);
+ return;
+ }
+
+ WXSERIAL(wxMDIParentFrame)::StoreObject(s);
+}
+
+void WXSERIAL(wxMDIParentFrame)::LoadObject(wxObjectInputStream& s)
+{
+ wxMDIParentFrame *frame = (wxMDIParentFrame *)Object();
+ wxMDIClientWindow *client;
+
+ if (s.SecondCall()) {
+ WXSERIAL(wxFrame)::LoadObject(s);
+ return;
+ }
+
+ client = (wxMDIClientWindow *) s.GetChild();
+
+ frame->Create(m_parent, m_id, m_title, wxPoint(m_x, m_y),
+ wxSize(m_w, m_h), m_style, m_name);
+
+ WXSERIAL(wxFrame)::LoadObject(s);
+}
+
+/////////////////////////////////////////////////////////////////////////////
+
+void WXSERIAL(wxMDIChildFrame)::StoreObject(wxObjectOutputStream& s)
+{
+ WXSERIAL(wxFrame)::StoreObject(s);
+}
+
+void WXSERIAL(wxMDIChildFrame)::LoadObject(wxObjectInputStream& s)
+{
+ WXSERIAL(wxFrame)::LoadObject(s);
+
+ if (s.SecondCall())
+ return;
+
+ ((wxMDIChildFrame *)Object())->Create((wxMDIParentFrame *)m_parent,
+ m_id, m_title,
+ wxPoint(m_x, m_y), wxSize(m_w, m_h),
+ m_style, m_name);
+}
+
+/////////////////////////////////////////////////////////////////////////////
+
+void WXSERIAL(wxMDIClientWindow)::StoreObject(wxObjectOutputStream& s)
+{
+ WXSERIAL(wxWindow)::StoreObject(s);
+}
+
+void WXSERIAL(wxMDIClientWindow)::LoadObject(wxObjectInputStream& s)
+{
+ WXSERIAL(wxWindow)::LoadObject(s);
+
+ if (s.SecondCall())
+ return;
+
+ ((wxMDIClientWindow *)Object())->CreateClient((wxMDIParentFrame *)m_parent, m_style);