Enable wxListCtrl in report mode to be able to use images in other
columns, if ComCtl32 >= 470. All it needed was to add the LVS_EX_SUBITEMIMAGES style, everything else was already in place, and the generic control already supports it too. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
13ff248506
commit
05886ed3f2
@ -73,6 +73,8 @@ wxMSW:
|
|||||||
to the link command.
|
to the link command.
|
||||||
- wxStatusBar::GetFieldRect now returns correct values under XP.
|
- wxStatusBar::GetFieldRect now returns correct values under XP.
|
||||||
- wxStatusBar no longer corrupts surrounding windows on resize.
|
- 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:
|
wxGTK:
|
||||||
|
|
||||||
|
@ -109,6 +109,10 @@
|
|||||||
#define LVS_EX_LABELTIP 0x00004000
|
#define LVS_EX_LABELTIP 0x00004000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef LVS_EX_SUBITEMIMAGES
|
||||||
|
#define LVS_EX_SUBITEMIMAGES 0x00000002
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In addition to the above, the following are required for several compilers.
|
* In addition to the above, the following are required for several compilers.
|
||||||
*/
|
*/
|
||||||
|
@ -371,7 +371,7 @@ bool wxListCtrl::Create(wxWindow *parent,
|
|||||||
if ( InReportView() && wxApp::GetComCtl32Version() >= 470 )
|
if ( InReportView() && wxApp::GetComCtl32Version() >= 470 )
|
||||||
{
|
{
|
||||||
::SendMessage(GetHwnd(), LVM_SETEXTENDEDLISTVIEWSTYLE,
|
::SendMessage(GetHwnd(), LVM_SETEXTENDEDLISTVIEWSTYLE,
|
||||||
0, LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT);
|
0, LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT | LVS_EX_SUBITEMIMAGES);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user