对Aero的玻璃窗口非客户画 [英] Non client painting on aero glass window

查看:269
本文介绍了对Aero的玻璃窗口非客户画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

结果
现在即时通讯定制我的应用程序的标题栏。我的目标是添加标题栏的一个额外的按钮。 IM我的<一个href=\"http://stackoverflow.com/questions/5571072/how-to-add-an-extra-button-to-the-window-title-bar-so-it-will-be-work-as-standar\">$p$pvious问题人劝我,我可以定制非客户区的方式。这就是完美的作品除了一个小的事情 - 发光!我可以得出在非工作区,但彤彤的我不能让它那$ P $垫窗外的。我也无法找到这个SUBJ任何资源。

我看着样品,并提出我自己的测试程序调查非客户图纸设备。我的应用程序窗口的屏幕截图:

所以,你可以看到系统按钮呈窗外的时候,我被borderframe裁剪。

例如,Skype的窗口在标题栏中四种自定义按钮,他们可以发光窗外框:

谁能告诉我找出绘制按钮的发光窗口的出路何在?结果
在此先感谢!

结果
谢谢大家的答案!


解决方案

Skype的欺骗它,并且具有沿其窗口的顶部有一个小条子;在那里他们可以借鉴的。

您可以用进程资源管理器SpyXX看到它

另请参见

MSDN:自定义窗口框架使用DWM


Now Im customizing title bar of my application. My aim is to add one extra button on title bar. Im my previous question people have adviced me the way I can customize non client area. Thats works perfectly except one small thing - glowing! I can draw glowing in nonclient area but I cannot make it spreads out of the window. I also cant find any resource about this subj.

I looked into this sample and made my own test app for investigating non client drawing facilities. Screen shot of my app's window:

So you can see that system button glows out of the windows when my is clipped by borderframe.

For example, Skype's window have four custom buttons in title bar and they can "glow" out of the window frame:

Can anybody advise me to find out the way to draw button's glowing out of the window?
Thanks in advance!

[EDIT]
Thank you everybody for answers!

解决方案

Skype cheats it, and has a little sliver along the top of their window; where they can draw it.

You can see it with Process Explorer to SpyXX:

See also

MSDN: Custom Window Frame Using DWM

这篇关于对Aero的玻璃窗口非客户画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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