]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_stbox.cpp
XRCID lookup now handles standard IDs correctly
[wxWidgets.git] / contrib / src / xrc / xh_stbox.cpp
index f3a27b937ee6c997afeae85b46ad3caecd1c674b..1cac4fb6e3df86f3098203c2a328cc4f9b201953 100644 (file)
@@ -30,23 +30,21 @@ wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
 
 wxObject *wxStaticBoxXmlHandler::DoCreateResource()
 { 
-    wxStaticBox *box = new wxStaticBox(m_parentAsWindow,
-                                    GetID(),
-                                    GetText(wxT("label")),
-                                    GetPosition(), GetSize(),
-                                    GetStyle(),
-                                    GetName()
-                                    );
+    XRC_MAKE_INSTANCE(box, wxStaticBox)
+
+    box->Create(m_parentAsWindow,
+                GetID(),
+                GetText(wxT("label")),
+                GetPosition(), GetSize(),
+                GetStyle(),
+                GetName());
+
     SetupWindow(box);
     
     return box;
 }
 
-
-
 bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode *node)
 {
     return IsOfClass(node, wxT("wxStaticBox"));
 }
-
-