Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!alchemy!tim From: tim@cs.ruu.nl (Tim Dumas) Newsgroups: comp.windows.ms.programmer Subject: Colors in a listbox, how? Message-ID: <1991Jun19.131439.21596@cs.ruu.nl> Date: 19 Jun 91 13:14:39 GMT Organization: Utrecht University, Dept. of Computer Science Lines: 21 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 -- --