From 16a0ccd009f7e6154be04d647ac4d23c16aacb32 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 6 Apr 2005 00:32:02 +0000 Subject: [PATCH] use LVS_EX_LABELTIP by default git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/missing.h | 4 ++++ src/msw/listctrl.cpp | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h index fb5acfa2b2..e17513c408 100644 --- a/include/wx/msw/missing.h +++ b/include/wx/msw/missing.h @@ -28,6 +28,10 @@ #define LVS_EX_FULLROWSELECT 0x00000020 #endif +#ifndef LVS_EX_LABELTIP + #define LVS_EX_LABELTIP 0x00004000 +#endif + #ifndef LVS_OWNERDATA #define LVS_OWNERDATA 0x1000 #endif diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index dd212e951c..c343501f9f 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -357,12 +357,12 @@ bool wxListCtrl::Create(wxWindow *parent, // 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, - 0, LVS_EX_FULLROWSELECT); + 0, LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT); } return true; -- 2.45.2