3 回答

TA贡献1872条经验 获得超4个赞
Google Chrome 并未使用Vista SDK在XP上实现此目标。如果您src\chrome\browser\views\frame浏览一下,则可以根据系统功能定义几个文件来定义浏览器框架。在XP上,看起来像是OpaqueFrame在使用;第19行这样说:
// OpaqueFrame
//
// OpaqueFrame is a CustomFrameWindow subclass that in conjunction with
// OpaqueNonClientView provides the window frame on Windows XP and on Windows
// Vista when DWM desktop compositing is disabled. The window title and
// borders are provided with bitmaps.
看起来好像是在使用资源src\chrome\app\theme来绘制框架按钮。
因此,我希望以某种廉价的方式在XP上启用Vista主题的希望破灭了。唯一的方法是手动绘制窗口的非客户区域。我相信类似的方法可能是正确的选择,因为它可以让Windows处理非客户端内容,例如移动和调整窗口大小。
除非有人能找到一种方法神奇地启用XP上的Vista主题,否则这就是问题的答案,但是我显然不能将自己的帖子标记为答案。
- 3 回答
- 0 关注
- 636 浏览
添加回答
举报