Jump to content
gil900

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

Recommended Posts

gil900

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!

 

Share this post


Link to post
Share on other sites
Jos

Correct...  that is the way windows works as far as I know with themes. Haven't looked at your link though.
 

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
gil900

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

×