From 31334ecb036c4682ccd5c14b49eeb5dcbf335e03 Mon Sep 17 00:00:00 2001 From: George Tasker Date: Wed, 7 Feb 2001 16:12:56 +0000 Subject: [PATCH] SetBackgroundColour() and SetForegroundColour() were being called before the HWND was set for the wxGauge95, and these two functions require the HWND of the gauge. Moved the call to these two functions to be after teh HWND is set. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gauge95.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/msw/gauge95.cpp b/src/msw/gauge95.cpp index 4f1bff7201..c1c2ac99af 100644 --- a/src/msw/gauge95.cpp +++ b/src/msw/gauge95.cpp @@ -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); -- 2.45.2