Article View: comp.windows.ms.programmer
Article #3303Colors in a listbox, how?
From: Tim Dumas
Date: Wed, 19 Jun 1991 13:14
Date: Wed, 19 Jun 1991 13:14
21 lines
1127 bytes
1127 bytes
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 --
--
Technical Details
Message-ID:
<1991Jun19.131439.21596@cs.ruu.nl>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!alchemy!timShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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