don't define, nor use, LVS_EX_LABELTIP under WinCE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-02-24 23:20:27 +00:00
parent 00b20999de
commit 2036bdd303
2 changed files with 6 additions and 1 deletions

View File

@@ -219,7 +219,8 @@ typedef struct wxtagNMLVCUSTOMDRAW_ {
#define LVS_EX_FULLROWSELECT 0x00000020 #define LVS_EX_FULLROWSELECT 0x00000020
#endif #endif
#ifndef LVS_EX_LABELTIP // LVS_EX_LABELTIP is not supported by Windows CE, don't define it there
#if !defined(LVS_EX_LABELTIP) && !defined(__WXWINCE__)
#define LVS_EX_LABELTIP 0x00004000 #define LVS_EX_LABELTIP 0x00004000
#endif #endif

View File

@@ -353,7 +353,11 @@ void wxListCtrl::MSWSetExListStyles()
::SendMessage ::SendMessage
( (
GetHwnd(), LVM_SETEXTENDEDLISTVIEWSTYLE, 0, GetHwnd(), LVM_SETEXTENDEDLISTVIEWSTYLE, 0,
// LVS_EX_LABELTIP shouldn't be used under Windows CE where it's
// not defined in the SDK headers
#ifdef LVS_EX_LABELTIP
LVS_EX_LABELTIP | LVS_EX_LABELTIP |
#endif
LVS_EX_FULLROWSELECT | LVS_EX_FULLROWSELECT |
LVS_EX_SUBITEMIMAGES | LVS_EX_SUBITEMIMAGES |
// normally this should be governed by a style as it's probably not // normally this should be governed by a style as it's probably not