-///////////////////////////////////////////////////////////////////////////////
// Name: univ/themes/win32.cpp
// Purpose: wxUniversal theme implementing Win32-like LNF
// Author: Vadim Zeitlin
#include "wx/scrolbar.h"
#include "wx/slider.h"
#include "wx/textctrl.h"
+
+ #ifdef __WXMSW__
+ // for COLOR_* constants
+ #include "wx/msw/private.h"
+ #endif
#endif // WX_PRECOMP
#include "wx/notebook.h"
bool wxWin32InputHandler::HandleMouse(wxControl *control,
const wxMouseEvent& event)
{
+ // clicking on the control gives it focus
+ if ( event.ButtonDown() && wxWindow::FindFocus() != control )
+ {
+ control->SetFocus();
+
+ return TRUE;
+ }
+
return FALSE;
}