Env: VC++6

Is it possible to change CListBox's color by every item while calling
CListBox::AddString()?

William

Re: CListBox item's color by David

David
Fri Aug 19 01:55:25 CDT 2005

>Is it possible to change CListBox's color by every item while calling
>CListBox::AddString()?

Not directly. You'd have to make the control owner-drawn and implement
all the associated handlers for starters and store some information
(in the item's lParam value perhaps) to indicate the colour.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq