Windows 10 上本机 C++ 应用程序的自定义标题栏颜色 [英] Custom Title Bar Color for native C++ app on Windows 10

查看:93
本文介绍了Windows 10 上本机 C++ 应用程序的自定义标题栏颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 10 据说可以让开发人员自由更改自己的标题栏颜色.我找到了一些关于如何为 Windows Store 应用程序执行此操作的资源(此处a>,此处).

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).

但是它的底层 Windows API 函数是什么?这个效果在原生C++中如何实现?

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

推荐答案

现在使用 DWM 完成:使用 DWM 的自定义窗口框架

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

(通过绘制渐变标题栏在 Windows 10 中使用 C++、C# 和 VB.NET 进行测试)

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

这篇关于Windows 10 上本机 C++ 应用程序的自定义标题栏颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆