Z.J. Da
May 7th, 1999, 03:18 PM
Hi all,
I am using Iuri's GfxListCtrl in a formview, but cannot display images in its column headers. What I have found is that SetItem of CListCtrl is sucessful only for the first column then fails for all other columns. I have tried following code:
for(idx = 0; idx < 5; idx++ )
{
iChkIdx = pList->InsertColumn(idx, "");
pList->wndHeader.GetItem(iChkIdx, &hditem );
pList->wndHeader.SetItem(iChkIdx, &hditem );
}
SetItem returns 1 only when idx = 0 but GetItem returns 1 for all idx. Actually these functions are from CListCtrl (not GfxListCtrl). Because it fails to setup data, the header images are not drawn.
Has anyone any idea? Thank in advance!
Da
I am using Iuri's GfxListCtrl in a formview, but cannot display images in its column headers. What I have found is that SetItem of CListCtrl is sucessful only for the first column then fails for all other columns. I have tried following code:
for(idx = 0; idx < 5; idx++ )
{
iChkIdx = pList->InsertColumn(idx, "");
pList->wndHeader.GetItem(iChkIdx, &hditem );
pList->wndHeader.SetItem(iChkIdx, &hditem );
}
SetItem returns 1 only when idx = 0 but GetItem returns 1 for all idx. Actually these functions are from CListCtrl (not GfxListCtrl). Because it fails to setup data, the header images are not drawn.
Has anyone any idea? Thank in advance!
Da