What you have to do is get the string from the edit box. This is pretty simple, but can be different depending on whether you are using the edit box as a normal control or in a normal resource dialog.
If the edit box is being used simply as a normal control, you would do something similar to this:
CClientDC dcPrint(this);
CString str;
// the name of your edit box is MyEditBox
MyEditBox.GetWindowText(str);
dcPrint.TextOut(50,150,str);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.