Added bitmap support to column header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
095a322160
commit
a02f7e511b
@ -1393,10 +1393,18 @@ void wxDataViewHeaderWindowMSW::UpdateDisplay()
|
||||
|
||||
HDITEM hdi;
|
||||
hdi.mask = HDI_TEXT | HDI_FORMAT | HDI_WIDTH;
|
||||
if (col->GetBitmap().IsOk())
|
||||
{
|
||||
hdi.mask |= HDI_BITMAP;
|
||||
hdi.hbm = (HBITMAP) col->GetBitmap().GetHBITMAP();
|
||||
}
|
||||
hdi.pszText = (wxChar *) col->GetTitle().wx_str();
|
||||
hdi.cxy = col->GetWidth();
|
||||
hdi.cchTextMax = sizeof(hdi.pszText)/sizeof(hdi.pszText[0]);
|
||||
hdi.fmt = HDF_LEFT | HDF_STRING;
|
||||
if (col->GetBitmap().IsOk())
|
||||
hdi.fmt |= HDF_BITMAP;
|
||||
|
||||
//hdi.fmt &= ~(HDF_SORTDOWN|HDF_SORTUP);
|
||||
|
||||
if (col->IsSortable() && GetOwner()->GetSortingColumn() == col)
|
||||
|
Loading…
Reference in New Issue
Block a user