]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_choic.cpp
documented EVT_LIST_ITEM_RIGHT_CLICK
[wxWidgets.git] / contrib / src / xml / xh_choic.cpp
index ea39ffb94b65b230b17866d75199e42005b134a2..6ffec1f04d761874c08f5fce1f489e56b6bfbbb2 100644 (file)
@@ -26,6 +26,7 @@ wxChoiceXmlHandler::wxChoiceXmlHandler()
 : wxXmlResourceHandler() , m_InsideBox(FALSE)
 {
     ADD_STYLE(wxCB_SORT);
+    AddWindowStyles();
 }
 
 wxObject *wxChoiceXmlHandler::DoCreateResource()
@@ -37,7 +38,8 @@ wxObject *wxChoiceXmlHandler::DoCreateResource()
 
         // need to build the list of strings from children
         m_InsideBox = TRUE;
-        CreateChildren( NULL, TRUE /* only this handler */);
+        CreateChildren( NULL, TRUE /* only this handler */, 
+                        GetParamNode(_T("content")));
         wxString *strings = (wxString *) NULL;
         if( strList.GetCount() > 0 )
         {