Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

display edit box's content

In the CNINumEdit box, if the value is a number, the i can just display the number using .Value . but how about if that vlaue is a string? How can i get the Text out?
0 Kudos
Message 1 of 3
(3,118 Views)
You can use the GetWindowText method to do this. For example, if you have a CNiNumEdit on a dialog and a member variable for it called m_numEdit, you could do this:

CString text;
m_numEdit.GetWindowText(text);

// Display the num edit's value as text in a message box.
MessageBox(text);

- Elton
Message 2 of 3
(3,118 Views)
Thanks.. I have got the way to solve it.. thanks..
0 Kudos
Message 3 of 3
(3,118 Views)