diff --git a/docs/changes.txt b/docs/changes.txt index 24db2be800..8617a58f4d 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -73,6 +73,8 @@ wxMSW: to the link command. - wxStatusBar::GetFieldRect now returns correct values under XP. - wxStatusBar no longer corrupts surrounding windows on resize. +- Enable wxListCtrl in report mode to be able to use images in other + columns, if ComCtl32 >= 470. wxGTK: diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h index fda8af03a7..1702717ce4 100644 --- a/include/wx/msw/missing.h +++ b/include/wx/msw/missing.h @@ -109,6 +109,10 @@ #define LVS_EX_LABELTIP 0x00004000 #endif +#ifndef LVS_EX_SUBITEMIMAGES + #define LVS_EX_SUBITEMIMAGES 0x00000002 +#endif + /* * In addition to the above, the following are required for several compilers. */ diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index ae0826d047..cbedea6f73 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -371,7 +371,7 @@ bool wxListCtrl::Create(wxWindow *parent, if ( InReportView() && wxApp::GetComCtl32Version() >= 470 ) { ::SendMessage(GetHwnd(), LVM_SETEXTENDEDLISTVIEWSTYLE, - 0, LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT); + 0, LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT | LVS_EX_SUBITEMIMAGES); } return true;