X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..3d5aff50cb85e5b3299bf046d185b172bd488f08:/src/msw/gauge95.cpp 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);