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);
Hope that helps!
-Bones