]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gauge95.cpp
added common imagxpm files
[wxWidgets.git] / src / msw / gauge95.cpp
index 4f1bff720167a088f913316c8e3cbb9164ef26e7..c1c2ac99affd5432b46059de760d4070b9c72c84 100644 (file)
@@ -89,9 +89,6 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id,
   m_rangeMax = range;
   m_gaugePos = 0;
 
-  SetBackgroundColour(parent->GetBackgroundColour());
-  SetForegroundColour(parent->GetForegroundColour());
-
   m_windowStyle = style;
 
   if ( id == -1 )
@@ -119,6 +116,9 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id,
 
   m_hWnd = (WXHWND)wx_button;
 
+  SetBackgroundColour(parent->GetBackgroundColour());
+  SetForegroundColour(parent->GetForegroundColour());
+
   // Subclass again for purposes of dialog editing mode
   SubclassWin((WXHWND) wx_button);