]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gaugemsw.cpp
moved common code from ctor and Create() to a separate Init() function
[wxWidgets.git] / src / msw / gaugemsw.cpp
index dacfc8f8d4dc007d845c63cec8625b2710ed27a7..0c33ec4dda3bfcb1ef397ed162f969a6902dc9e8 100644 (file)
@@ -87,8 +87,8 @@ bool wxGaugeMSW::Create(wxWindow *parent, wxWindowID id,
   m_rangeMax = range;
   m_gaugePos = 0;
 
-  SetBackgroundColour(parent->GetDefaultBackgroundColour()) ;
-  SetForegroundColour(parent->GetDefaultForegroundColour()) ;
+  SetBackgroundColour(parent->GetBackgroundColour()) ;
+  SetForegroundColour(parent->GetForegroundColour()) ;
 
   m_windowStyle = style;