News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Treeview colors.

Started by xanatose, April 05, 2010, 11:36:36 PM

Previous topic - Next topic

xanatose

I wonder what message do I need to send to set the selected color of a treeview.

Already found this messages to set the colors of text, background and line color, but no messages for selected text color and background color.
TVM_SETTEXTCOLOR
TVM_SETBKCOLOR
TVM_SETLINECOLOR

I wonder if there is a message for the selected text color and selected background color, or is the only way to custom draw the treeview?

donkey

Hi xanatose,

You will have to use custom draw, though it is not that difficult the draw stages can be confusing. You should note that Custom Draw and Owner Draw are not the same thing, for custom draw just handle the NM_CUSTOMDRAW notification of the WM_NOTIFY message.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable