登录
首页 » EditBox » EDIT控件设置只读属性后就不允许用户进行输入和编辑删除等基本操作了,控件只可以用来信息的浏览,但是,如果使用默认的设置函数的话,EDIT控件的背景色将变成灰色...

EDIT控件设置只读属性后就不允许用户进行输入和编辑删除等基本操作了,控件只可以用来信息的浏览,但是,如果使用默认的设置函数的话,EDIT控件的背景色将变成灰色...

于 2023-04-26 发布 文件大小:32.56 kB
0 118
下载积分: 2 下载次数: 1

代码说明:

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.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 很多格式输入控制的编辑框
    很多格式输入控制的编辑框-The edit which accpets many input styles
    2022-02-04 01:35:29下载
    积分:1
  • 一个运行照片编辑控件,显示图片;图标将被转换为B。
    一款运行时图片编辑控件,支持显示图片;将icon转换为位图(支持16色、256色或更高色);保存选定的图像为.bmp文件,或拷贝到剪贴板;为经常使用的位图/图标建立书签,方便使用;-one run photo editing controls, the display picture; Icon will be converted to bitmap (support 16 colors, 256 colors or higher color); the preservation of the selected images. bmp file, or copy to the clipboard; regular use of bitmap/icon establish bookmarks, ease of use;
    2022-04-08 04:08:14下载
    积分:1
  • 用C语言编写的pascal词法分析程序,识别程序子集的文法
    用C语言编写的pascal词法分析程序,识别程序子集的文法-C language prepared by the pascal lexical analysis procedure, the identification procedures subset of grammar
    2023-04-01 17:45:04下载
    积分:1
  • 一个简单的音频播放器(漂亮的界面,含全部源码,共3个类)给点...
    一个简单的音频播放器(漂亮的界面,含全部源码,共3个类)给点-a simple audio player (beautiful interface, including all source code, a total of three) to the point
    2022-07-21 14:36:23下载
    积分:1
  • 边缘的检测与提取,从一幅图象中将边缘提取出来供识别或处理使用...
    边缘的检测与提取,从一幅图象中将边缘提取出来供识别或处理使用-edge detection and extraction, from the edge of an image will be extracted for use or disposal Recognition
    2022-02-03 22:45:30下载
    积分:1
  • "similar statements Excel Class" with the latest version, libraries an...
    《类似EXCEL的报表类库》有最新版本了,类库和可执行演示文件在压缩包里。 本次更新内容: 1)在程序完善了图表部分,支持图表的打印预览 2)修改了在程序调用生成图表的小bug 3)支持根据单元格数据绘制曲线图/饼图-"similar statements Excel Class" with the latest version, libraries and enforceable Presentations compression bag. With this update : 1) the procedure improved the charts, graphs to support the Print Preview 2) changes in procedures called Generation small bug chart 3) support for the cell for data mapping curve/pie
    2022-12-22 10:40:03下载
    积分:1
  • 如何混合使用Jsp和SSI #include? 在JSP中可以使用如下方式包含纯HTML: <!...
    如何混合使用Jsp和SSI #include? 在JSP中可以使用如下方式包含纯HTML: 但是如果data.inc中包含JSP CODE ,我们可以使用: 如何执行一个线程安全的JSP? 只需增加如下指令 JSP如何处理HTML FORM中的数据? 通过内置的request对象即可,如下: 在JSP如何包含一个静态文件? 静态包含如下: 动态包含如下: 在JSP中如何使用注释? 主要有四中方法: 1。 2。// 3。/**与**/ 4。-how mixed use Jsp and SSI# include JSP can be used as follows contains pure HTML : lt ;!--# include file = "data.inc"-- gt; But if data.inc JSP CODE contains, we can use : lt ; % @ include file = "data.inc"% gt; how to implement a security thread JSP only increased as follows instructions lt; % @ page isThreadSafe = "false"% gt; JSP HTML FORM how to handle the data through built-in
    2022-01-28 18:56:30下载
    积分:1
  • * Function: Input Double number in CEdit * 支持拷贝和粘贴,粘贴的时候只支持数字和一个小数点,不让支持负号 *...
    * Function: Input Double number in CEdit * 支持拷贝和粘贴,粘贴的时候只支持数字和一个小数点,不让支持负号 * Last Update Date: 02-04-2009 11:32:06 Guang Zhou Logansoft.com * Last Update Date: 02-05-2009 10:17:46 Guang Zhou Logansoft.com * * 使用方法: * Add to Project file:EditNumeric.h/CPP * Add the follow code in your StdAfx.h * #include "EditNumeric.h" * CEditNumeric m_Edit1-* Function: Input Double number in CEdit * 支持拷贝和粘贴,粘贴的时候只支持数字和一个小数点,不让支持负号 * Last Update Date: 02-04-2009 11:32:06 Guang Zhou Logansoft.com * Last Update Date: 02-05-2009 10:17:46 Guang Zhou Logansoft.com * * 使用方法: * Add to Project file:EditNumeric.h/CPP * Add the follow code in your StdAfx.h * #include "EditNumeric.h" * CEditNumeric m_Edit1
    2022-07-04 06:40:23下载
    积分:1
  • hefty almanac source do not know how could examine the wording hefty almanac
    浩浩年鉴的出处不知道怎么能考查浩浩年鉴的措辞
    2023-04-24 22:50:03下载
    积分:1
  • This is an improved version of Calculator overcome the floating
    这是一个改进型计算器克服了浮点运算误差新增了报数和运算符改错功能,比起我上次做的代码质量更高,更简捷,算法也不一样。当前只支持基本的四则运算,非常适用!!!,美中不足是报音慢点,但对于手慢的使用者也足够了,对于大量快速计算建议关闭报数功能。在98上通过-This is an improved version of Calculator overcome the floating-point error in the newspapers a few new and Operators Corrector function, compared to the last time I do a higher quality of code, more simple, not the same algorithm. Currently only supports the four basic operations, very applicable! ! ! , Reportedly fly in the ointment is the sound slow, but for users of hand slow enough for a large number of fast computation reportedly recommended the closure of several functions. Adopted in 1998
    2022-10-25 21:00:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载