List Box
- From: wayne <wayne.1pj35o@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 May 2005 03:10:01 -0500
Hi Dave,
How can i use the command that u mentioned? will it b possible for u to
give me an example pls? thanks....
let say for a listbox containing:
apple
orange
pear
how can i make the text for orange be red, while apple n pear b black?
thanks alot
wayne
David Lowndes wrote:
> *>May i know if we are able to change the text color of the List Box?
> For
> >example, i have 10 items in the List Box. By default, the words are
> >black in color. Is there anyway i can change 1 or 2 items to
> another
> >color, while the rest remain as black?
>
> Wayne,
>
> You will need to make the control use the owner drawn style and add
> handlers for the WM_MEASUREITEM & WM_DRAWITEM messages.
>
> Dave
> --
> MVP VC++ FAQ: [url]http://www.mvps.org/vcfaq[/url] *
--
wayne
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
.
- Prev by Date: RE: how do I organize my C++/CLI solution
- Next by Date: error C2512: no appropriate default constructor
- Previous by thread: Re: List Box
- Next by thread: How can i ZIP a wave file using PHP.
- Index(es):
Relevant Pages
|