]> git.saurik.com Git - wxWidgets.git/commitdiff
set WS_GROUP on the first button in the group, fixes hangs inside native radiobox...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2005 16:39:56 +0000 (16:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2005 16:39:56 +0000 (16:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/radiobox.cpp

index f4a4178a0e142db2ee266babe278019e61ed35b2..d34034c6b1b7a600132c7b67535817b87f50c7f2 100644 (file)
@@ -177,7 +177,7 @@ bool wxRadioBox::Create(wxWindow *parent,
         m_radioWidth[i] =
         m_radioHeight[i] = wxDefaultCoord;
         long styleBtn = BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD | WS_VISIBLE;
-        if ( i == 0 && style == 0 )
+        if ( i == 0 )
             styleBtn |= WS_GROUP;
 
         long newId = NewControlId();