Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Title Bar Color for native C++ app on Windows 10

Windows 10 supposedly gives developers the freedom to change their own titlebar colors. I have found a few resources on how to do this for Windows Store apps (here, here).

But what is the underlying Windows API function for it? How can this effect be achieved in native C++?

like image 450
Felix Dombek Avatar asked Jul 02 '15 13:07

Felix Dombek


People also ask

How do I change the color of the title bar in Winforms C #?

Click on the title bar the sample desktop, the one called "Active Window", and then use the "Color 1" and "Color 2" drop-down boxes to pick a new color.

How do I make the title bar black in Windows 10?

Here is how it can be done. To enable Dark Title Bars with Custom Accent Color in Windows 10, do the following. Open Settings and navigate to Personalization > Colors. Turn off (uncheck) the Title bars and window borders option.


1 Answers

It is now done with DWM : Custom Window Frame Using DWM

(tested on Windows 10 in C++, C# and VB.NET by drawing gradient caption bars)

like image 111
Castorix Avatar answered Oct 05 '22 23:10

Castorix