List Box




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
------------------------------------------------------------------------

.



Relevant Pages

  • Re: Apple To Lose 2% Of Its Retail Locations
    ... CompUSA. ... mentioned the possibility that it may impact Apple. ... What's really behind this bit of silliness of yours, Dave? ... factual statement is not a lie just because he says so. ...
    (comp.sys.mac.advocacy)
  • Re: Apple To Lose 2% Of Its Retail Locations
    ... mentioned the possibility that it may impact Apple. ... they will also see that your thread title was dishonest. ... Not at all, Mayor. ... This is just plain asinine Dave. ...
    (comp.sys.mac.advocacy)
  • Re: iPhone to Threaten Several Platforms
    ... Maccies are good at predicting that the latest Apple gadget is going ... Dave declares victory through proclamation. ... nothing but insults and assertions. ... And, again, the Mayor tries insults instead of substance. ...
    (comp.sys.mac.advocacy)
  • Re: iPhone to Threaten Several Platforms
    ... their share  of the smartphone market in the past year. ... Maccies are good at predicting that the latest Apple gadget is going ... Dave declares victory through proclamation. ... I've never tried to make you, or anyone else in here, see reality. ...
    (comp.sys.mac.advocacy)
  • Re: Apple To Lose 2% Of Its Retail Locations
    ... mentioned the possibility that it may impact Apple. ... of the article was Apple losing 2% of their retail space, ... factual statement is not a lie just because he says so. ... Said Dave to the man in the mirror. ...
    (comp.sys.mac.advocacy)