Jump to content

$GUI_BKCOLOR_DEFAULT is... ?


Achilles
 Share

Recommended Posts

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]
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...