Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?
Posted
Updated 22-Jun-11 17:16pm
v2
Comments
Richard MacCutchan 22-Jun-11 5:35am    
Anybody know why?
Without seeing your code it is impossible to guess.
DrBones69 22-Jun-11 22:48pm    
I am just wondering if the masked edit control has any special formatting that I need to handle.
Richard MacCutchan 23-Jun-11 3:55am    
No idea, but you could always read the documentation.

1 solution

I don't know,I did not use this one
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900