- // we use BS_RADIOBUTTON and not BS_AUTORADIOBUTTON because the use of the
- // latter can easily result in the application entering an infinite loop
- // inside IsDialogMessage()
- //
- // we used to use BS_RADIOBUTTON only for wxRB_SINGLE buttons but there
- // doesn't seem to be any harm to always use it and it prevents some hangs,
- // see #9786
- msStyle |= BS_RADIOBUTTON;
-
- if ( HasFlag(wxCLIP_SIBLINGS) )
- msStyle |= WS_CLIPSIBLINGS;
- if ( HasFlag(wxALIGN_RIGHT) )
- msStyle |= BS_LEFTTEXT | BS_RIGHT;
-
- if ( !MSWCreateControl(wxT("BUTTON"), msStyle, pos, size, label, 0) )
+ if ( !MSWCreateControl(wxT("BUTTON"), msStyle, pos, size, label, exstyle) )