|
-
May 7th, 1999, 03:18 PM
#1
Cannot setupt image for the header of listctrl
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|