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
This commit is contained in:
Vadim Zeitlin
2005-02-27 16:39:56 +00:00
parent 19ac2f446a
commit 1f621c2fd6

View File

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