From 1f621c2fd630803e51914e7997800c1eda86c8dd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Feb 2005 16:39:56 +0000 Subject: [PATCH] set WS_GROUP on the first button in the group, fixes hangs inside native radiobox code (bug 1091714) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/radiobox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index f4a4178a0e..d34034c6b1 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -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(); -- 2.47.2