- if ( m_startRadioGroup == -1 )
- {
- // nothing to do
- return;
- }
-
- wxMenuItemList::Node *nodeStart = GetMenuItems().Item(m_startRadioGroup);
- wxCHECK_RET( nodeStart, _T("where is the radio group start item?") );
-
- int endRadioGroup = GetMenuItemCount();
-
- wxMenuItemList::Node *node = nodeStart;
- for ( int n = m_startRadioGroup; n < endRadioGroup && node; n++ )
- {
- wxMenuItem *item = (wxMenuItem *)node->GetData();
- item->SetRadioGroup(m_startRadioGroup, endRadioGroup - 1);
-
- node = node->GetNext();
- }
-
- nodeStart->GetData()->Check(TRUE);
-