[Way-back in memory]
If you assign the control a variable, you can write to it directly.
...if you attach a CString to the control -- naming it strData, you can
issue a command like strData = { converting the double to a string and placing it here. }
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
...looking more into this:
If you right-click the edit control, you will get a menu.
Choose "Add Variable"
A dialog box will appear.
Change the "category" to "value" and the variable type will change to CString.
Put in a Variable Name like strData
...click Finish
I added some code to format the string and the proper value appeared in the edit box.
double dbl = 123.45;
strData.Format("%02.02f", dbl);
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
Are you using the Unicode character set?
I switched mine to MultiByte.
...should have mentioned that...
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402