Jump to content

Need to change the titlebar color of the GUI in Windows 10


Recommended Posts

Posted

Hello,

I am looking and trying long time with no success for how to change the color in the title bar to my color choice in conventional way at the moment (in Windows 10).

I have the following example:

help.thumb.png.b0171b0ae16fb2d20eda4fa2f

Code:

#include <GUIConstantsEx.au3>

GUICreate("My GUI", 300, 200)


GUISetState(@SW_SHOW)


$ObjTest = ObjCreate('ApplicationView.TitleBar')
If @error Then ConsoleWrite(1111 & @CRLF)


Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE


GUIDelete()

 

The image tells what I want very clear.

Nothing I tried worked.

 The only thing that really changed the color is this line:

DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", $hGui, "wstr", 0, "wstr", 0)

 

But it also changed  everything and I want to change only the color..

 I found possible solution here:

https://www.reddit.com/r/Windows10/comments/37poip/windows_10_allow_developers_to_change_the_color/

But I was not able to implement it in Autoit.

I would love to get some help on this..

Thank you!

 

Posted (edited)

Thanks for trying to help...

Edited by Guest

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
  • Recently Browsing   0 members

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