文件名称:具有背景颜色和文字颜色的EDIT控件
- 所属分类:
- 编辑框
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 32.56kb
- 下载次数:
- 0次
- 提 供 者:
- 屠**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
EDIT控件设置只读属性后就不允许用户进行输入和编辑删除等基本操作了,控件只可以用来信息的浏览,但是,如果使用默认的设置函数的话,EDIT控件的背景色将变成灰色,如果你的主题程序的颜色背景进行一致的处理的话,这样可能会与你的整体风格不和,所以需要一个具有背景颜色但是又具有只读属性的EDIT控件刻不容缓了.
实现的方法其实很简单,派生一个CEDIT类,我们这里命名为CColReadOnlyEdit,再这个类中我们首先触发PreTranslateMessage,这个函数可以用来截获消息编程。-EDIT controls installed after the read-only attribute does not allow users to input and edit delete basic operation of the control information can be used only browser, but if the use of the default settings, it is highly EDIT control the background color to gray, but if your theme procedure for a background color made a deal with the case, it may be with your overall style and not, so it is necessary to have a background color but also with the read-only attribute the delay EDIT Controls. realizing the fact is very simple, derived a CEDIT category, we named CColReadOnlyEdit here, and the first category trigger PreTranslateMessage, this function can be used to intercepted news programming.
实现的方法其实很简单,派生一个CEDIT类,我们这里命名为CColReadOnlyEdit,再这个类中我们首先触发PreTranslateMessage,这个函数可以用来截获消息编程。-EDIT controls installed after the read-only attribute does not allow users to input and edit delete basic operation of the control information can be used only browser, but if the use of the default settings, it is highly EDIT control the background color to gray, but if your theme procedure for a background color made a deal with the case, it may be with your overall style and not, so it is necessary to have a background color but also with the read-only attribute the delay EDIT Controls. realizing the fact is very simple, derived a CEDIT category, we named CColReadOnlyEdit here, and the first category trigger PreTranslateMessage, this function can be used to intercepted news programming.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 101259373具有背景颜色和文字颜色的edit控件.rar 列表 ReadOnlyEditDemo\ColReadOnlyEdit.h ReadOnlyEditDemo\ReadOnlyEditDemo.opt ReadOnlyEditDemo\ColReadOnlyEdit.cpp ReadOnlyEditDemo\ReadOnlyEditDemoDlg.cpp ReadOnlyEditDemo\ReadOnlyEditDemo.rc ReadOnlyEditDemo\ReadOnlyEditDemo.clw ReadOnlyEditDemo\ReadMe.txt ReadOnlyEditDemo\ReadOnlyEditDemo.h ReadOnlyEditDemo\ReadOnlyEditDemo.cpp ReadOnlyEditDemo\ReadOnlyEditDemo.aps ReadOnlyEditDemo\ReadOnlyEditDemoDlg.h ReadOnlyEditDemo\StdAfx.h ReadOnlyEditDemo\StdAfx.cpp ReadOnlyEditDemo\res\ReadOnlyEditDemo.rc2 ReadOnlyEditDemo\res\ReadOnlyEditDemo.ico ReadOnlyEditDemo\res ReadOnlyEditDemo\ReadOnlyEditDemo.dsp ReadOnlyEditDemo\ReadOnlyEditDemo.dsw ReadOnlyEditDemo\ReadOnlyEditDemo.ncb ReadOnlyEditDemo\Debug ReadOnlyEditDemo\ReadOnlyEditDemo.plg ReadOnlyEditDemo\Resource.h ReadOnlyEditDemo 说明.txt