X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f199b71e3e7f430b2b8830b4e75e2d5870b4212..229653c99e1d679aab15772a4a25909ca52c4d94:/src/msw/radiobut.cpp diff --git a/src/msw/radiobut.cpp b/src/msw/radiobut.cpp index 4cdecd98cf..f038fd099a 100644 --- a/src/msw/radiobut.cpp +++ b/src/msw/radiobut.cpp @@ -18,22 +18,23 @@ // ---------------------------------------------------------------------------- #ifdef __GNUG__ - #pragma implementation "radiobut.h" +#pragma implementation "radiobut.h" #endif // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ - #pragma hdrstop +#pragma hdrstop #endif #if wxUSE_RADIOBTN #ifndef WX_PRECOMP - #include "wx/radiobut.h" - #include "wx/settings.h" - #include "wx/brush.h" +#include "wx/radiobut.h" +#include "wx/settings.h" +#include "wx/brush.h" +#include "wx/dcscreen.h" #endif #include "wx/msw/private.h" @@ -187,4 +188,19 @@ wxSize wxRadioButton::DoGetBestSize() const return wxSize(wRadio, hRadio); } +long wxRadioButton::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) +{ + if (nMsg == WM_SETFOCUS) + { + m_focusJustSet = TRUE; + + long ret = wxControl::MSWWindowProc(nMsg, wParam, lParam); + + m_focusJustSet = FALSE; + + return ret; + } + return wxControl::MSWWindowProc(nMsg, wParam, lParam); +} + #endif // wxUSE_RADIOBTN