From: Vadim Zeitlin Date: Sun, 24 Feb 2008 23:20:27 +0000 (+0000) Subject: don't define, nor use, LVS_EX_LABELTIP under WinCE X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2036bdd30368d117918b565ae990a89841281f33?ds=inline 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 --- diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h index 8bbad72d99..b13bc7736e 100644 --- a/include/wx/msw/missing.h +++ b/include/wx/msw/missing.h @@ -219,7 +219,8 @@ typedef struct wxtagNMLVCUSTOMDRAW_ { #define LVS_EX_FULLROWSELECT 0x00000020 #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 #endif diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 6b0b8c4666..a0d60fea2e 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -353,7 +353,11 @@ void wxListCtrl::MSWSetExListStyles() ::SendMessage ( 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 | +#endif LVS_EX_FULLROWSELECT | LVS_EX_SUBITEMIMAGES | // normally this should be governed by a style as it's probably not