// reason to revert to the backward compatible behaviour - but I still
// leave this possibility just in case.
-#define RADIOBTN_PARENT_IS_RADIOBOX 1
+#define RADIOBTN_PARENT_IS_RADIOBOX 0
// ---------------------------------------------------------------------------
// private functions
delete choices2;
}
-#endif
+#endif // WXWIN_COMPATIBILITY
// Radio box item
wxRadioBox::wxRadioBox()
return FALSE;
// create the static box
- if ( !MSWCreateControl(wxT("BUTTON"), BS_GROUPBOX, pos, size, title, 0) )
+ if ( !MSWCreateControl(wxT("BUTTON"), BS_GROUPBOX | WS_GROUP,
+ pos, size, title, 0) )
return FALSE;
// and now create the buttons
{
switch ( nMsg )
{
+#ifndef __WIN16__
case WM_CTLCOLORSTATIC:
// set the colour of the radio buttons to be the same as ours
{
return (WXHBRUSH)brush->GetResourceHandle();
}
+#endif
// This is required for the radiobox to be sensitive to mouse input,
// e.g. for Dialog Editor.