首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

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

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

  • 资源大小:32.56 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: EditBox

资 源 简 介

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.

文 件 列 表

ReadOnlyEditDemo
Debug
res
ColReadOnlyEdit.h
ReadOnlyEditDemo.opt
ColReadOnlyEdit.cpp
ReadOnlyEditDemoDlg.cpp
ReadOnlyEditDemo.rc
ReadOnlyEditDemo.clw
ReadMe.txt
ReadOnlyEditDemo.h
ReadOnlyEditDemo.cpp
ReadOnlyEditDemo.aps
ReadOnlyEditDemoDlg.h
StdAfx.h
StdAfx.cpp
ReadOnlyEditDemo.dsp
ReadOnlyEditDemo.dsw
ReadOnlyEditDemo.ncb
ReadOnlyEditDemo.plg
Resource.h
说明.txt
VIP VIP
0.178537s