]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gauge95.cpp
Don't send a focus event if the window is a wxTextCtrl, since it sends
[wxWidgets.git] / src / msw / gauge95.cpp
index 8b4bfbeb90d36a918e72a310fbfa26bc5a639245..efcb6da2979c6d0a0a3370531bc80735a19a1337 100644 (file)
@@ -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 <commctrl.h>
 #endif
 
@@ -103,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;