ListView Background Colour

tarik
10-26-2000, 12:04 PM
Hello

My first post in this forum, so nice to meet you all!

I want to selectively set the background colour of items in a list view, so that the user can easily differentiate between various categories of items.

The standard:

SendMessage(ListView1.hwnd, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, ByVal lStyle)

unfortunately seems to set the whole lot to just the one colour.

Is it even possible?

Thanks
Tarik

senderap
10-30-2000, 03:22 PM
I don't know what you are planning on doing with the list box. But you can try a MSFlex grid. You can contol the back ground color of each row. Just shut the grid lines off and set the selection by row only and set the fixed cols and row both to zero and you will have something close to what you want. It will be a bit more programming overhead though.

SenderaP

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum