// ----------------------------------------------------------------------------
#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"
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