tim@cs.ruu.nl (Tim Dumas) (06/19/91)
How do I get colored text in listboxes? I tried to process the
WM_CTLCOLOR message but it doesn't seem to work:
case WM_CTLCOLOR:
if ( HIWORD(lParam) == CTLCOLOR_LISTBOX ){
SetBkMode( wParam, TRANSPARENT );
SetTextColor( wParam, RGB(255,0,0) );
}
break;
If somebody knows what went wrong, please answer me by email.
Thanks in advance.
-- Tim Dumas --
-- Department of Computer Science Padualaan 14 --
-- Utrecht University P.O. Box 80.089 --
-- E-mail: tim@cs.ruu.nl 3508 TB Utrecht, The Netherlands --
-- Telephone: +31-30-534094 Telefax: +31-30-513791 --
--