X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c9a19aabab3a878b565e6c2a5f2a3824277c4dc..d3017584ba511936444abd5a2400e0519f35416f:/src/msw/gauge95.cpp diff --git a/src/msw/gauge95.cpp b/src/msw/gauge95.cpp index 2d93312fc6..7d082b81b4 100644 --- a/src/msw/gauge95.cpp +++ b/src/msw/gauge95.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "gauge95.h" #endif @@ -37,7 +37,7 @@ #include "wx/msw/gauge95.h" #include "wx/msw/private.h" -#if defined(__WIN95__) && !((defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) && !defined(__CYGWIN10__)) +#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) && !defined(__CYGWIN10__)) #include #endif @@ -68,6 +68,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxGauge95, wxControl) +/* + TODO PROPERTIES + range (long) + value (long) + shadow (ShadowWidth) + bezel (BezelFace) +*/ + // ============================================================================ // implementation // ============================================================================ @@ -101,11 +109,8 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id, int width = size.x; int height = size.y; - long msFlags = WS_CHILD | WS_VISIBLE /* | WS_CLIPSIBLINGS */; - - if ( m_windowStyle & wxCLIP_SIBLINGS ) - msFlags |= WS_CLIPSIBLINGS; - + WXDWORD exStyle = 0; + long msFlags = MSWGetStyle(style, & exStyle) ; if (m_windowStyle & wxGA_VERTICAL) msFlags |= PBS_VERTICAL; @@ -114,7 +119,7 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id, msFlags |= PBS_SMOOTH; HWND wx_button = - CreateWindowEx(MakeExtendedStyle(m_windowStyle), PROGRESS_CLASS, NULL, msFlags, + CreateWindowEx(exStyle, PROGRESS_CLASS, NULL, msFlags, 0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId, wxGetInstance(), NULL);