]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
Use connect_signal_after for list events. This should
[wxWidgets.git] / src / msw / control.cpp
index d5775be8b75ace8967a8bd04c8dd7ada73c19c24..a74b5721cad60c4421f9028ef09d1c0f398b1f35 100644 (file)
@@ -222,8 +222,8 @@ wxSize wxControl::GetBestSpinerSize(const bool is_vertical) const
 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
                     0,GetCharHeight()
 #else
-                    GetSystemMetrics(is_vertical ? SM_CXVSCROLL : SM_CXHSCROLL),
-                    GetSystemMetrics(is_vertical ? SM_CYVSCROLL : SM_CYHSCROLL)
+                    ::GetSystemMetrics(is_vertical ? SM_CXVSCROLL : SM_CXHSCROLL),
+                    ::GetSystemMetrics(is_vertical ? SM_CYVSCROLL : SM_CYHSCROLL)
 #endif
     );
 
@@ -343,6 +343,8 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg)
     WXHBRUSH hbr;
     if ( colBg.Ok() )
     {
+        ::SetBkColor(hdc, wxColourToRGB(colBg));
+
         // draw children with the same colour as the parent
         wxBrush *brush = wxTheBrushList->FindOrCreateBrush(colBg, wxSOLID);