I understand that:
wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
set the background color of the window.
And I _think_ that:
COLOR_ACTIVEBORDER
COLOR_ACTIVECAPTION
COLOR_APPWORKSPACE
COLOR_INACTIVECAPTION
COLOR_MENU
COLOR_MENUTEXT
COLOR_SCROLLBAR
set the colors for other parts of the (same?) window.
However, how do you set multiple window parts in one pass
(declaration?)?.
PS. I'm using C not C++, and a small example would be nice.
---
Regards,
Sam
SamAndujar-at-juno-dot-com
On Thu, 22 Feb 2001 23:54:56 -0800 (PST)
=?iso-8859-1?q?Jose=20Manuel=20Padron=20Carrillo?=
<jos...@ya...> writes:
>
> wndclass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
>
> I never use it like that. I use this notation
>
> wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
>
> So I dont need to include the .lib file.
>
> These are all the colors you can use
>
> COLOR_ACTIVEBORDER
> COLOR_ACTIVECAPTION
<snip>
________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today! For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
|