From f3984afa302ddbbc5e8cdc87d901d891587c94b1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 30 Nov 2005 16:33:43 +0000 Subject: [PATCH] Set major dim after the items have been created git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/radiobox.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index cc0ca3009a..f7800b103b 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -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); -- 2.45.2