Transparent Edit Using a Pattern Backgro - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
In this article, to make an editor transparent, a NULL_BRUSH was created and returned from the OnCtlColor message handler. This idea was very simple, but when I tried to use it, I found that the blue rectangle of text selection remained in the background after the text was unselected.
So, instead of creating a NULL_BRUSH, I created a pattern brush by using a chunk of bitmap from where the edit control is going to be shown.
在这个项目中为了生成一个透明的编辑框,在 OnCtlColor 消息处理器中创建了一个 NULL_BRUSH 。其思想是很简单的,但当我试图使用它时,发现当文本取消选择时,蓝色的编辑框的矩形边界仍旧在背景中。
所以我不是创建了一个 NULL_BRUSH,而是通过用编辑框所在区域的位图创建了一个模式刷。
来源: http://www.codeguru.com/Cpp/controls/editctrl/backgroundcolor/article.php/c6857/ |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
DrawingApp |
 1.0  |
2004-04-18 |
下载 |
|
|