-///////////////////////////////////////////////////////////////////////////////
// Name: univ/themes/win32.cpp
// Purpose: wxUniversal theme implementing Win32-like LNF
// Author: Vadim Zeitlin
{
switch ( col )
{
- case WINDOW: return *wxWHITE;
-
// use the system colours under Windows
#if defined(__WXMSW__)
case WINDOW: return wxColour(GetSysColor(COLOR_WINDOW));
case SHADOW_OUT: return wxColour(GetSysColor(COLOR_BTNSHADOW));
#else // !__WXMSW__
// use the standard Windows colours elsewhere
+ case WINDOW: return *wxWHITE;
+
case CONTROL_PRESSED:
case CONTROL_CURRENT:
case CONTROL: return wxColour(0xc0c0c0);
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;
}