VC ++蒙版编辑控件. [英] VC++ mask edit control.

查看:146
本文介绍了VC ++蒙版编辑控件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,每个人都可以告诉我如何设置蒙版编辑控件的文本,我使用的是日期的蒙版编辑控件.我的蒙版带有##/##/####和##-### -##.i还希望将遮罩编辑控件设置为空白,以便有机会在我单击按钮后再次写入日期.

hi every one can any one tell me how to set text for mask edit control, i am using mask edit control for date.i have mask with ##/##/#### and ##-###-##.i also want to set mask edit control blank to give chance to write date again after i click a push button .

推荐答案

可能的解决方案
可能是表单上的CStatic派生控件(视图),

激活CDateTimeCtrl派生的控件
在(CStatic)的边界上,通过单击鼠标.

第二个控件可以对Enter/Del/Esc/KillFocus事件做出反应
隐藏自身和第一个控件的通知
设置新文本...:)
A possible solution
could be a CStatic derived control on your form (view),

that activates a CDateTimeCtrl derived control
on its (of CStatic) bounds, by a mouse click.

The second control could react to the Enter/Del/Esc/KillFocus events
with the hiding of itself and the notifications of the first control
to set a new text... :)


这篇关于VC ++蒙版编辑控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆