如何添加一个额外的按钮,窗口标题栏,所以这将是工作的标准? [英] How to add an extra button to the window title bar, so it will be work as standard?

查看:412
本文介绍了如何添加一个额外的按钮,窗口标题栏,所以这将是工作的标准?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

结果
首先我想指出,我已阅读所有文章上等主题,但仍然没有答案我的问题。此外,我的问题比其他人略有不同。结果
今天,我在Skype窗口看看。有它的标题栏的一个额外的按钮。但是,此按钮作为原生系统按钮。只要看看上发光,它传播窗外。所以,我有问题,合理。根据我们可以看到下面的图片,还有就是添加标题栏按钮外标准的方式。但在SUBJ所有答案会导致 WM_NCPAINT 事件和额外的按钮的手工绘图的挂钩。这种方法的工作,但它不能产生如此美丽的发光的照片。结果
有谁知道添加窗口的标题栏standartized按钮的方式吗?
提前感谢!结果


Firstly I want mention that I have already read all articles on SO on subject, but still have no answer for my question. Also my question slightly different than others.
Today a I have a look on Skype window. There is one extra button on it's title bar. But this button acts as native system button. Just look on glowing, it spreads out of the window. So I have the reasonable question. According to that we can see on the picture below, there is standard way to add extra button on title bar. But all answers on subj leads to hooking of WM_NCPAINT event and manual drawing of extra button. This approach is work but it could not yield such beautifull glowing as on the picture.
Does anybody knows the way to add standartized button on window's title bar? Thanks in advance!

推荐答案

在Vista和Windows 7有一个叫做桌面窗口管理器的新事物。这是用来绘制Aero玻璃窗口的标题栏,并做发光效果。实现WM_NCPAINT处理的旧的Windows XP的做法并不认同这一新的系统工作,所以你必须使用一个全新的API。

In Vista and Windows 7 there is a new thing called the Desktop Window Manager. This is used to draw the "Aero glass" window titlebars, and do the glow effects. The old Windows XP approach of implementing WM_NCPAINT handlers doesn't work with this new system, so you have to use a whole new API.

我敢肯定,我已经看到做你问什么一些文章,但现在无法找到它们。这可能会给你一些线索有些是:

I'm sure I've seen some articles on doing what you're asking about, but can't find them right now. Some pages that might give you some leads are:

的http:// MSDN .microsoft.com / EN-US /库/ aa969540(v = VS.85)的.aspx

http://delphihaven.wordpress.com/2010/04/19/setting-up -a-自定义标题栏/

这篇关于如何添加一个额外的按钮,窗口标题栏,所以这将是工作的标准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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