Absent Member.
Absent Member.

[archive] Treeview Background

[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.
1 Reply
Absent Member.
Absent Member.

RE: [archive] Treeview Background

you can do this. it requires
a. C code linked or dll loaded
b. excute windows API command.

Windows API function is SendMessage:

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!
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.