X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9baf9d7381850790040b26b11cc9456877ddc4e..3fc6e5fa23909c701654001a895f2ba95751e0af:/src/msw/radiobut.cpp?ds=sidebyside diff --git a/src/msw/radiobut.cpp b/src/msw/radiobut.cpp index 83e588ab4d..f038fd099a 100644 --- a/src/msw/radiobut.cpp +++ b/src/msw/radiobut.cpp @@ -188,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