Skip to main content

[Migrated content. Thread originally posted on 30 June 2005]

I try to implement a treeview in our program.
The background of the whole window is grey.

So i added a "color" option to the treeview - screen-entry.

Now i have most of the treeview grey, but the items-background still apears in white.

A color option added in the item-to-add command has no effect.


Is there any way to paint the whole background in grey?
So that only the item-text apears in black?

(looks extreme ugly now .. part grey part white .. in a grey window)

I hope i could explain my problem properly.

[Migrated content. Thread originally posted on 30 June 2005]

I try to implement a treeview in our program.
The background of the whole window is grey.

So i added a "color" option to the treeview - screen-entry.

Now i have most of the treeview grey, but the items-background still apears in white.

A color option added in the item-to-add command has no effect.


Is there any way to paint the whole background in grey?
So that only the item-text apears in black?

(looks extreme ugly now .. part grey part white .. in a grey window)

I hope i could explain my problem properly.
you can do this. it requires
a. C code linked or dll loaded
b. excute windows API command.

Windows API function is SendMessage:
example:

DWORD dwColor = RGB(192,192,192);
SendMessage(hTreeView, TVM_SETBKCOLOR, 0, dwColor );

hTreeView you can get with:
nquire My-Treeview system handle in TV-Handle.

01 TV-Handle unsigned-int.

good luck!