将屏蔽的编辑值存储在数组中,我是否缺少另一种方式? [英] Storing masked edit values in an array, is there a different way that I'm missing?

查看:57
本文介绍了将屏蔽的编辑值存储在数组中,我是否缺少另一种方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我创建了一个数组来存储编辑控制框的值,它们都是CString类型,我也对此进行了序列化.一切正常,直到我将两个编辑控件框从CEdit更改为CMFCMaskedEdit控件.现在,在遍历数组时,两个被屏蔽的值保持不变,而其他控件则按应有的方式填充.掩码的值将最后输入的值保留到数组中.有人知道为什么吗?

我从工具箱添加了mfc蒙版编辑控件,添加了控件变量,添加了用于存储框信息的变量,并在属性中设置了蒙版输入模板.我认为屏蔽的编辑与编辑控件的工作相同.我检查了数组中的数据,还将数据保存到磁盘上,一切都应该保持原样,但是当我尝试填充控件时,未填充掩码值.

Hi All! I created an array to store the edit control box values, they are all of type CString, I have also serialized this. Everything was working fine until I changed two of my edit control boxes from CEdit to CMFCMaskedEdit controls. Now, when stepping through my array, the two masked values stay the same while my other controls populate like they should. The masked values keep the last valued entered into the array. Anybody know why?

I added the mfc masked edit control from the toolbox, added a control variable, added a variable to store the box info and set the masked input template in the properties. I thought the masked edit worked the same as an edit control. I checked the data in the array and also saved the data to disk, everything is as it should be, but when I try to populate the controls my masked values are not populated. Should I be adding any additional support for processing the masked output?

推荐答案

我不知道,我没有使用过这个
I don''t know,I did not use this one


这篇关于将屏蔽的编辑值存储在数组中,我是否缺少另一种方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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