Click here to Skip to main content
15,850,751 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone;
I use C++ (microsoft visual studio 2010). I need code to use fonts and color in listbox.

1 solution

To set the font of a ListBox control, send it the WM_SETFONT Message
To set the color of text and background, the control's parent window (or dialog) must handle the WM_CTLCOLORLISTBOX Message
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900