X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..1d5c2a8eb521f99044a04ee5aa7be4a5619cb918:/src/msw/gauge95.cpp diff --git a/src/msw/gauge95.cpp b/src/msw/gauge95.cpp index 4f1bff7201..efcb6da297 100644 --- a/src/msw/gauge95.cpp +++ b/src/msw/gauge95.cpp @@ -37,7 +37,7 @@ #include "wx/msw/gauge95.h" #include "wx/msw/private.h" -#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) +#if defined(__WIN95__) && !((defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) && !defined(__CYGWIN10__)) #include #endif @@ -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 ) @@ -106,6 +103,10 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id, long msFlags = WS_CHILD | WS_VISIBLE /* | WS_CLIPSIBLINGS */; + if ( m_windowStyle & wxCLIP_SIBLINGS ) + msFlags |= WS_CLIPSIBLINGS; + + if (m_windowStyle & wxGA_VERTICAL) msFlags |= PBS_VERTICAL; @@ -119,6 +120,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); @@ -137,11 +141,11 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id, return TRUE; } -void wxGauge95::SetShadowWidth(int w) +void wxGauge95::SetShadowWidth(int WXUNUSED(w)) { } -void wxGauge95::SetBezelFace(int w) +void wxGauge95::SetBezelFace(int WXUNUSED(w)) { }