Win32 - User Specified System Colours?
Hey all,
Another Win32 question from me, I''m sure you''re all thrilled.
You set a Window''s background colour like this:
WindowClass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
If you want the background to be black.
I do not want the background to black or white or green or red. I want the user to have the option. If their Windows has the default grey, I want the colour to be the default grey. If the user has set all their backgrounds as red, I want them to have their default red colour.
How can I let Windows decide what the colours should be?
(HBRUSH)(COLOR_BTNFACE + 1);
See the WNDCLASS documentation.
Colin Jeanne | Invader's Realm
"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud
[edited by - Invader X on May 20, 2004 1:54:26 AM]
See the WNDCLASS documentation.
Colin Jeanne | Invader's Realm
"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud
[edited by - Invader X on May 20, 2004 1:54:26 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement