I created project using VS2008 wizard SDI > CView
How can i print some text from Cstring to my main window CView
for example in dialog window with list box i use smth like this m_ListBox1.AddString((LPCTSTR)s);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To print it in the view (without any controls or anything like that), you can use something like
pDC->Textout()orpDC->DrawText()inside your view class’OnDraw()function. Note that by default thepDCparameter has its name commented out — you’ll need to un-comment it before you can use it.