为了创建具有透明背景的静态控件,我需要指定哪种静态控件样式?(新增) [英] What static control style do I need to specify in order to create a static control with transparent background?(New)
问题描述
为了创建具有透明背景的静态控件,我需要指定哪种静态控件样式?
以前的经验告诉我在运行时创建的静态控件时间通常具有与对话框默认背景颜色相同的背景颜色。但是因为我想将此静态控件用作嵌入工具栏中的组合框的标签,所以我不想要这种默认背景颜色。如何制作背景透明。
如果无法做到这一点,我是否可以获得工具栏的设备上下文?
如果不可能,我如何实现目标?
What static control style do I need to specify in order to create a static control with transparent background?
Previous experience has shown me that static control created at run time usually have a background colour that is identical to a dialogue box default background color.But since I want to use this static control as label for a combobox embedded in a toolbar, I dont want this default background color.How do I make the background tranparent.
If this is not possible, is it possible for me to get a device context for a toolbar?
If that is not possible, how do I achieve my aim?
推荐答案
以下是Raymond Chen的回答:< a href =http://blogs.msdn.com/b/oldnewthing/archive/2011/10/28/10230811.aspx>为什么我的透明静态控件不透明? [ ^ ]
Here's an answer from Raymond Chen: Why isn't my transparent static control transparent?[^]
这篇关于为了创建具有透明背景的静态控件,我需要指定哪种静态控件样式?(新增)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!