]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/radiobox.cpp
fixed problems with sometimes processing the events twice introduced in rev 1.170...
[wxWidgets.git] / src / msw / radiobox.cpp
index cc0ca3009a14cc1de78997fbffd2afb251e421ad..f7800b103b077c3e968aae4b8156d1b8aa982847 100644 (file)
@@ -147,9 +147,6 @@ bool wxRadioBox::Create(wxWindow *parent,
                         const wxValidator& val,
                         const wxString& name)
 {
-    // initialize members
-    SetMajorDim(majorDim == 0 ? n : majorDim, style);
-
     // common initialization
     if ( !wxStaticBox::Create(parent, id, title, pos, size, style, name) )
         return false;
@@ -211,6 +208,7 @@ bool wxRadioBox::Create(wxWindow *parent,
     SetWindowPos(GetHwnd(), HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
 #endif
 
+    SetMajorDim(majorDim == 0 ? n : majorDim, style);
     SetSelection(0);
     SetSize(pos.x, pos.y, size.x, size.y);