CColorListBox - Listbox with text in color For my FTP server project I wanted the trace lines to appear in several different colors. So I created this simple CColorListBox. It’s not much more than an owner drawn CListBox that allows you to specify the color of each individual item. The class has only one extra member function:
int AddString(LPCTSTR lpszItem, COLORREF itemColor);
Check out the example to see the class in use.
Download example executable
Download source code This class is part of the Pablo Software Solutions MFC Extension Package - Controls Edition
|