]> git.saurik.com Git - wxWidgets.git/commitdiff
use LVS_EX_LABELTIP by default
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Apr 2005 00:32:02 +0000 (00:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Apr 2005 00:32:02 +0000 (00:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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

index fb5acfa2b248cad728d9d62bd7201875d02eab1d..e17513c408895f5e1d165b6209d4c39f7d365adb 100644 (file)
     #define LVS_EX_FULLROWSELECT 0x00000020
 #endif
 
     #define LVS_EX_FULLROWSELECT 0x00000020
 #endif
 
+#ifndef LVS_EX_LABELTIP
+    #define LVS_EX_LABELTIP 0x00004000
+#endif
+
 #ifndef LVS_OWNERDATA
     #define LVS_OWNERDATA 0x1000
 #endif
 #ifndef LVS_OWNERDATA
     #define LVS_OWNERDATA 0x1000
 #endif
index dd212e951cabd81d31a2d12519ac6d85bfae24b1..c343501f9fe4226e4dc45c0b7ec945a508004cc0 100644 (file)
@@ -357,12 +357,12 @@ bool wxListCtrl::Create(wxWindow *parent,
     // versions of _some_ messages (notably LVN_GETDISPINFOA) in MSLU build
     wxSetCCUnicodeFormat(GetHwnd());
 
     // versions of _some_ messages (notably LVN_GETDISPINFOA) in MSLU build
     wxSetCCUnicodeFormat(GetHwnd());
 
-    // for comctl32.dll v 4.70+ we want to have this attribute because it's
-    // prettier (and also because wxGTK does it like this)
+    // for comctl32.dll v 4.70+ we want to have some non default extended
+    // styles because it's prettier (and also because wxGTK does it like this)
     if ( InReportView() && wxApp::GetComCtl32Version() >= 470 )
     {
         ::SendMessage(GetHwnd(), LVM_SETEXTENDEDLISTVIEWSTYLE,
     if ( InReportView() && wxApp::GetComCtl32Version() >= 470 )
     {
         ::SendMessage(GetHwnd(), LVM_SETEXTENDEDLISTVIEWSTYLE,
-                      0, LVS_EX_FULLROWSELECT);
+                      0, LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT);
     }
 
     return true;
     }
 
     return true;