Background of CTreeCtrl buttons
Peter A. Vanvliet -- pvanvlie@neosoft.com
Monday, January 22, 1996
-- [ From: Peter A. Vanvliet * EMC.Ver #2.5.02 ] --
In the Project Workspace of Visual C++ 4.0 the Tree Ctrl has a white
background behind the "buttons" of the parent item. When I create my Tree
Ctrl I only get light gray. Does anybody know how to change that?
Thank you
Peter
--
Houston, Texas
e-mail: pvanvlie@neosoft.com
System Analyst, NanoSoft Corporation (http://www.special-events.com)
HALPC C++ SIG Leader (ftp://ftp.neosoft.com/pub/users/p/pvanvlie/cppsig.
htm)
Martin Wawrusch -- wawrusch@accs.co.at
Wednesday, January 24, 1996
On Jan 22, 7:42pm, Peter A. Vanvliet wrote:
> Subject: Background of CTreeCtrl buttons
> -- [ From: Peter A. Vanvliet * EMC.Ver #2.5.02 ] --
>
> In the Project Workspace of Visual C++ 4.0 the Tree Ctrl has a white
> background behind the "buttons" of the parent item. When I create my Tree
> Ctrl I only get light gray. Does anybody know how to change that?
Adding this code may help:
yourimagelist.SetBkColor(GetSysColor(COLOR_WINDOW));
You should set this in your TreeCtrl OnCreate function and
every time the System color changes.
Take a look at the daoview example file treeview.cpp lines 82 and 439.
HTH
Martin
--
Martin Wawrusch | ESBMASAP, BNS A. Einstein
ACCS Software | Tel. : +43 1 983 46 91
Huetteldorferstr. 163/23 | Fax. : +43 1 983 01 00
A-1140 Vienna, Austria | EMail: wawrusch@accs.co.at
| Вернуться в корень Архива
|