Archived

This topic is now archived and is closed to further replies.

GroZZleR

Win32 - User Specified System Colours?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
(HBRUSH)(COLOR_BTNFACE + 1);

See the WNDCLASS documentation.


Thanks Salsa!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]

Share this post


Link to post
Share on other sites