Click to See Complete Forum and Search --> : help! nagging CListCtrl details...


Niall Bryan
April 8th, 1999, 11:41 PM
Trying to take control of CListCtrl in VC++ 5.0...

1) Can a list ctrl be of OWNER_DRAW style only if it's in REPORT view style. My DrawItem() fn works fine when the list ctrl's REPORT style is set, but for all other styles (ICON, SMALLICON, LIST) the ctrl seems to revert to the standard (built in) item display method. Any insight?

2) Also trying to implement an IMAGECALLBACK/TEXTCALLBACK fn for each item (icon and text). The online docs describe how to set the flag (to let the item know to look for a callback fn to get it's icon/text) but I can't find anywhere to set a ptr to the actual callback function. Thought it might be a resident method, such as CListCtrl::ItemTextCallback(), but I can't find anything like this. How 'bout insight for this?

Thanks bunches to the gurus for any help,
Niall