#include "wx/msw/private.h"
#include <windowsx.h>
-#if !(defined(__GNUWIN32_OLD__) || defined(__TWIN32__))
+#if defined(__WIN95__) && !((defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) && !defined(__CYGWIN10__))
#include <commctrl.h>
#endif
m_windowId = id == -1 ? NewControlId() : id;
- DWORD wstyle = WS_CHILD | WS_VISIBLE /* | WS_CLIPSIBLINGS */ ;
+ DWORD wstyle = WS_CHILD | WS_VISIBLE;
+
+ if ( style & wxCLIP_SIBLINGS )
+ wstyle |= WS_CLIPSIBLINGS;
+
// setting SBARS_SIZEGRIP is perfectly useless: it's always on by default
// (at least in the version of comctl32.dll I'm using), and the only way to
SetFieldsWidth();
}
-void wxStatusBar95::SetStatusWidths(int WXUNUSED(n), const int widths[])
+void wxStatusBar95::SetStatusWidths(int WXUNUSED_UNLESS_DEBUG(n), const int widths[])
{
wxASSERT_MSG( n == m_nFields, _T("field number mismatch") );