15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


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




| Вернуться в корень Архива |