标题栏中的标签:秘密是什么? [英] Tabs in title bar: what's the secret?

查看:120
本文介绍了标题栏中的标签:秘密是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome和Firefox 4和其他应用程序现在将其某些用户界面放在标题栏中.在Windows中,操作系统通常控制整个标题栏.应用程序可以通过删除操作系统标题栏并绘制假"标题栏(例如WinAmp)来创建自定义标题栏,但是只有操作系统知道如何绘制标题栏的非自定义元素(例如,关闭/最小化)/Maximize),具体取决于操作系统版本.

Chrome and Firefox 4, among other applications, now put some of their user interface in the title bar. In Windows, the OS normally controls the entire title bar. An application can create a custom title bar by removing the OS title bar and drawing a "fake" title bar instead (like WinAmp), but only the OS knows how to draw the non-customized elements of the title bar (e.g. Close/Minimize/Maximize), which vary by OS version.

Chrome和Firefox等应用通过什么机制与操作系统共享"标题栏(将自定义元素放入标题栏中,同时保持原始操作系统的视觉主题)?

By what mechanism do apps like Chrome and Firefox "share" the title bar with the OS (put custom elements in the title bar while keeping the original OS visual theme)?

在Chrome浏览器中,标签页会覆盖标题栏,因此标题文本空间不足.

推荐答案

Microsoft在文章

Microsoft has a very detailed explanation in the article Custom Window Frame Using DWM.

这篇关于标题栏中的标签:秘密是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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