透明所有者绘制的按钮 [英] Transparent owner drawn buttons

查看:100
本文介绍了透明所有者绘制的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用相机应用程序,并且创建了一些所有者绘制的按钮.有人可以帮助我使这些所有者绘制的按钮透明吗?

I am working on a camera application and I have created a few owner drawn buttons. Can anyone help me make these owner drawn buttons transparent?

我正在使用VC ++(普通Win32,没有MFC)开发应用程序.

I am developing the application in VC++ (plain Win32, no MFC).

推荐答案

签出此页面.另外,带有区域和抗锯齿边缘的透明按钮" 可能是您可能也可能不是"重新寻找,已经建成. 创建透明按钮的简便方法" 是另一个示例,但显然存在内存泄漏,并且没有.移动控件时不要重绘(也许您可以通过阅读上面的背景更新时重绘的文章来解决此问题).
Check out this article, which has a solution for making transparent controls that can be redrawn when the background changes (if you are layering your buttons over video, this could be useful). Sounds like you already know how to make owner drawn buttons, but just in case you don''t, read this page. Also, "Transparent Button with Region and Anti-Aliased Edges" may or may not be what you''re looking for, already built. "An easy way to create transparent button" is another example, but it apparently has memory leaks and doesn''t redraw when the control is moved (maybe you can fix that up by reading the above article that redraws when the background is updated).


这篇关于透明所有者绘制的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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