]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/control.h
added code for hardware platform detection (__INTEL__, __POWERPC__, ... which were...
[wxWidgets.git] / include / wx / msw / control.h
index 74000ed3e2d43f350d5e7703bdf7567e13788354..70ce2da88df26b02546772710ba0e4361b131bb8 100644 (file)
@@ -125,7 +125,15 @@ protected:
 
     // call this from the derived class MSWControlColor() if you want to always
     // paint the background (as all opaque controls do)
-    WXHBRUSH MSWControlColorSolid(WXHDC pDC, wxColour colBg = wxNullColour);
+    WXHBRUSH MSWControlColorSolid(WXHDC pDC)
+    {
+        return DoMSWControlColor(pDC, GetBackgroundColour());
+    }
+
+    // common part of the 3 functions above: pass wxNullColour to use the
+    // appropriate background colour (meaning ours or our parents) or a fixed
+    // one
+    WXHBRUSH DoMSWControlColor(WXHDC pDC, wxColour colBg);
 
     // another WM_CTLCOLOR-related function: override this to return the brush
     // which should be used to paint the control background by default