]> git.saurik.com Git - wxWidgets.git/commitdiff
don't define, nor use, LVS_EX_LABELTIP under WinCE
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Feb 2008 23:20:27 +0000 (23:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Feb 2008 23:20:27 +0000 (23:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/missing.h
src/msw/listctrl.cpp

index 8bbad72d9989531f79d1096cf638467964374933..b13bc7736e6d62587b99f1e72603b2bc259bebab 100644 (file)
@@ -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
 
index 6b0b8c4666006997e13015a9f661c3a60168e3fb..a0d60fea2ea88fbe29aea7642a0939bc4228c016 100644 (file)
@@ -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