+
+/////////////////////////////////////////////////////////////////////////////
+
+void WXSERIAL(wxDialog)::StoreObject(wxObjectOutputStream& s)
+{
+ WXSERIAL(wxWindow)::StoreObject(s);
+}
+
+void WXSERIAL(wxDialog)::LoadObject(wxObjectInputStream& s)
+{
+ WXSERIAL(wxWindow)::LoadObject(s);
+
+ ((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;
+
+ client = (wxMDIClientWindow *) s.GetChild(0);
+ s.RemoveChildren(1);
+
+ frame->Create(m_parent, m_id, m_title, wxPoint(m_x, m_y),
+ wxSize(m_w, m_h), m_style, m_name);
+// client->CreateClient(this, style_client);
+
+ WXSERIAL(wxFrame)::LoadObject(s);
+}