+
+#ifdef __WXMSW__
+ // we need to hop to the next activated
+ // radio button, not just the next radio
+ // button under MSW
+ if (wxIsKindOf(child,wxRadioButton))
+ {
+ wxRadioButton *rb = (wxRadioButton*) child;
+ if (!rb->GetValue())
+ {
+ for (;;)
+ {
+ wxWindowList::compatibility_iterator node = children.Find( child );
+ if (forward)
+ node = node->GetNext();
+ else
+ node = node->GetPrevious();
+ if (!node) return; // this would probably an error
+ child = node->GetData();
+ if (!wxIsKindOf(child,wxRadioButton)) continue;
+ rb = (wxRadioButton*) child;
+ if (rb->GetValue()) break;
+ }
+ }
+ }
+#endif
+ // disable propagation for this call as otherwise the event might
+ // bounce back to us.
+ wxPropagationDisabler disableProp(event);