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
This commit is contained in:
George Tasker
2001-02-07 16:12:56 +00:00
parent c521c4947e
commit 31334ecb03

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