Get Default Window Background Colour?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by naw.

Hi, Anyone out there know how to determine the default/system set Window Background Colour (as set by the OS) - ie in Windows:
Right Click on Desktop->Properties->Appearance

Ta - N
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Hi, Anyone out there know how to determine the default/system set Window Background Colour (as set by the OS) - ie in Windows:
IIRC:
rgb.l=GetSysColor_(#WHATEVER_THING_YOU_WANT_THE_COLOUR_FOR)


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.20)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by naw.

Hi Tinman,

Mmmm!

I found:
RGB.l=GetSysColor_(#COLOR_WINDOW)

But the colour returned is always 8 digits - eg: 16777215 - so this isn't RRRGGGBBB, is it - any idea what?

Ta - N
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

value=16777215
MessageRequester("info",Hex(value),0)

and you see 6 Hex-Digits, 2 for each Color
RRGGBB


Its a long way to the top if you wanna .....CodeGuru
Post Reply