Jump to content

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

Recommended Posts



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:



#include <GUIConstantsEx.au3>

GUICreate("My GUI", 300, 200)


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




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:


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

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


Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

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


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.