Achilles Posted August 2, 2008 Share Posted August 2, 2008 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 More sharing options...
AdmiralAlkex Posted August 2, 2008 Share Posted August 2, 2008 It's probably in the registry somewhere. I would try changing the colors while having Procmon running .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
ProgAndy Posted August 2, 2008 Share Posted August 2, 2008 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 More sharing options...
Achilles Posted August 3, 2008 Author Share Posted August 3, 2008 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now