]> git.saurik.com Git - wxWidgets.git/commitdiff
SetBackgroundColour() and SetForegroundColour() were being called before the HWND...
authorGeorge Tasker <gtasker@allenbrook.com>
Wed, 7 Feb 2001 16:12:56 +0000 (16:12 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Wed, 7 Feb 2001 16:12:56 +0000 (16:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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);