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