]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/radiobox.cpp
oops, more fixes needed
[wxWidgets.git] / src / msw / radiobox.cpp
index b5ccacd1e3d6a02181a64ea6c21da6051ba86d93..bb1b247614aac745fdf1f2c11c37583e518a1c0d 100644 (file)
@@ -251,22 +251,6 @@ wxRadioBox::wxRadioBox()
     m_radioHeight = NULL;
 }
 
-wxRadioBox::wxRadioBox(wxWindow *parent,
-                       wxWindowID id,
-                       const wxString& title,
-                       const wxPoint& pos,
-                       const wxSize& size,
-                       int n,
-                       const wxString choices[],
-                       int majorDim,
-                       long style,
-                       const wxValidator& val,
-                       const wxString& name)
-{
-    (void)Create(parent, id, title, pos, size, n, choices, majorDim,
-                 style, val, name);
-}
-
 bool wxRadioBox::Create(wxWindow *parent,
                         wxWindowID id,
                         const wxString& title,
@@ -368,6 +352,22 @@ bool wxRadioBox::Create(wxWindow *parent,
     return TRUE;
 }
 
+bool wxRadioBox::Create(wxWindow *parent,
+                        wxWindowID id,
+                        const wxString& title,
+                        const wxPoint& pos,
+                        const wxSize& size,
+                        const wxArrayString& choices,
+                        int majorDim,
+                        long style,
+                        const wxValidator& val,
+                        const wxString& name)
+{
+    wxCArrayString chs(choices);
+    return Create(parent, id, title, pos, size, chs.GetCount(),
+                  chs.GetStrings(), majorDim, style, val, name);
+}
+
 wxRadioBox::~wxRadioBox()
 {
     m_isBeingDeleted = TRUE;