+ if ( GetKind() == wxItem_Radio )
+ {
+ // it doesn't make sense to uncheck a radio item - what would this do?
+ if ( !check )
+ return;
+
+ const wxMenuItemList& items = m_parentMenu->GetMenuItems();
+ int pos = items.IndexOf(this);
+ wxCHECK_RET( pos != wxNOT_FOUND,
+ _T("menuitem not found in the menu items list?") );
+
+#ifdef __WIN32__
+ if ( !::CheckMenuRadioItem(hmenu,
+ m_startRadioGroup, // first group item
+ m_endRadioGroup, // last one
+ pos, // the one to check
+ MF_BYPOSITION | flags) )
+ {
+ wxLogLastError(_T("CheckMenuRadioItem"));