Felix Dombek
Felix Dombek

Reputation: 14372

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++?

Upvotes: 13

Views: 11336

Answers (2)

Castorix
Castorix

Reputation: 1545

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)

Upvotes: 3

Blindy
Blindy

Reputation: 67380

You always could change the color of the title bar in Windows. Simply handle WM_NCPAINT and paint away!

Upvotes: 0

Related Questions