X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1e418eaea09da4d74cc0d2b9d6bb1f9decbfa49..37b8e6798782278fdfe4f3c1291aaff55cdbb8c9:/src/msw/radiobox.cpp diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 26868c3ec0..a7e5101893 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -156,7 +156,7 @@ wxRadioBox::wxRadioBox(wxWindow *parent, wxFunction func, const char *title, delete choices2; } -#endif +#endif // WXWIN_COMPATIBILITY // Radio box item wxRadioBox::wxRadioBox() @@ -194,7 +194,8 @@ bool wxRadioBox::Create(wxWindow *parent, 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 @@ -712,6 +713,7 @@ long wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) { switch ( nMsg ) { +#ifndef __WIN16__ case WM_CTLCOLORSTATIC: // set the colour of the radio buttons to be the same as ours { @@ -725,6 +727,7 @@ long wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) return (WXHBRUSH)brush->GetResourceHandle(); } +#endif // This is required for the radiobox to be sensitive to mouse input, // e.g. for Dialog Editor.