Listbox owner drawn

If I used the LBS_OWNERDRAWNFIXED flag for a listbox, how would I draw it and what would I have to do? Can anyone please explain the messages and APIs I'd have to use?

Comments

  • [b][red]This message was edited by the AsmGuru62 at 2002-7-2 7:10:41[/red][/b][hr]
    : If I used the LBS_OWNERDRAWNFIXED flag for a listbox, how would I draw it and what would I have to do? Can anyone please explain the messages and APIs I'd have to use?
    :
    [blue]Respond on WM_DRAWITEM which will be coming to the parent of your listbox - your dialog - if it is a dialog. You receive it for every visible list item.[/blue]


  • Also, the ListBox will send you a WM_MEASUREITEM message when it's being created, in order to allow you to specify the height of the items. If you do not handle it, you will get 16-pixels (or something) tall items.
    _____________________________
    [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    http://www20.brinkster.com/coldshine[/size]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories