Sign in to follow this  
Followers 0
Achilles

$GUI_BKCOLOR_DEFAULT is... ?

4 posts in this topic

I know that the constant $GUI_BKCOLOR_DEFAULT is equal to -1. However, I want to know how to actually get what color that is.

For Vista it's 0xF0F0F0... at least for me.

For my windows classic view of Vista it's 0xD4D0C8 (the gray color)... But with that you can change the color scheme to make it whatever you want.

I need to know because I want a button on my GUI that can restore the default colors based on what the users current theme is. I've tried just using the $GUI_BKCOLOR_DEFAULT but it then just sets the color to what it currently is... which is pointless.

Any ideas?


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites



Just use

$COLOR_3DDKSHADOW = 15

$3D_BackgroundCol = _WinAPI_GetSysColor($COLOR_3DDKSHADOW)


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Just use

$COLOR_3DDKSHADOW = 15

$3D_BackgroundCol = _WinAPI_GetSysColor($COLOR_3DDKSHADOW)

Wow, I hadn't seen that... I used _WinAPI_GetSysColor($COLOR_3DFACE) instead. Thanks for pointing this function out to me.

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0