#pragma hdrstop
#endif
+#if wxUSE_LISTCTRL
+
#ifdef __WIN95__
#ifndef WX_PRECOMP
#include "wx/msw/private.h"
-#ifdef __GNUWIN32_OLD__
+#if ((defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) && !defined(__CYGWIN10__))
#include "wx/msw/gnuwin32/extra.h"
#else
#include <commctrl.h>
DWORD wstyle = WS_VISIBLE | WS_CHILD | WS_TABSTOP |
LVS_SHAREIMAGELISTS | LVS_SHOWSELALWAYS;
+
+ if ( m_windowStyle & wxCLIP_SIBLINGS )
+ wstyle |= WS_CLIPSIBLINGS;
+
if ( wxStyleHasBorder(m_windowStyle) )
wstyle |= WS_BORDER;
m_baseStyle = wstyle;
}
else
{
- lvItem.pszText = WXSTRINGCAST info.m_text;
+ lvItem.pszText = info.m_text;
if ( lvItem.pszText )
lvItem.cchTextMax = info.m_text.Length();
else
#endif // __WIN95__
+#endif // wxUSE_LISTCTRL