text color in listbox
May i know if we are able to change the text color of the List Box when the listbox is created using MFC Dialog Box? For example, i have 10 items in the List Box. By default, the words are black in color.
Is there any ways i can change 1 or 2 items to another color, while the rest remain as black?
thanks for the help....
Please don't cross-post.
If you haven't already done so then please take some time to familiarise yourself with the faq:
Make sure you have a look at the the posting guidelines:
Following the rules will ensure you get a prompt answer to your question.
Remember, too, that the board has a search facility, a link is at the top of your screen:
It will often get you a quicker answer to your questions than waiting for a response to one you have posted.
If you have any questions about this you may ask or you can contact one of our forum leaders:
The answer given in your original thread is what you need, namely implementing an owner-drawn listbox. An example using mfc can be found here.