Jump to content

Windows 10 - Get title bar colour


Recommended Posts

Does anybody know how I would go about getting the window title bar colour on Windows 10? I tried using _WinAPI_GetSysColor, and manually reading the registry (HKCU\Control Panel\Colors, ActiveTitle) but in either case I get the same (0x99B4D1, wrong) result.

RegRead('HKCU\Control Panel\Colors', 'ActiveTitle') ; Returns 153 180 209 (aka 99B4D1)
_WinAPI_GetSysColor ($COLOR_ACTIVECAPTION) ; Returns 0xD1B499 (aka 99B4D1)

 

Link to comment
Share on other sites

Ah yes, that's exactly what I was looking for. Thank you. :)

Is there any documentation on this? Curious what the rest of the data in that key is for.

*Edit: After using your info as a jump off point I also found this other AutoIt thread: 

Thanks again.

 

Edited by therks
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

×
×
  • Create New...