How do you interactively write to a CEditView Window

  • Thread starter Thread starter skidmarks
  • Start date Start date
S

skidmarks

(Newbie): I am trying to output status and diagnostic information to a
CEditView Window and allow users input annotations to the same window. The
User input is handled by Windows. How do I output to the window? How do I
ensure that program output is appended to existing text? DrawText erases the
screen and outputs to (0,0). What is the magic? (Please)

skidmarks
 
skidmarks said:
(Newbie): I am trying to output status and diagnostic information to a
CEditView Window and allow users input annotations to the same window. The
User input is handled by Windows. How do I output to the window? How do I
ensure that program output is appended to existing text? DrawText erases
the
screen and outputs to (0,0). What is the magic? (Please)


You shouldn't be drawing text on the CEditView window.

Instead, you can use CEditView::GetEditCtrl() to get the edit control
(CEdit) associated with the CEditView.
With the CEdit object, you can use its methods to insert text into the
control.

Mark
 
Mark;

Thank you. I misspoke when I said that I write to a CEditView window. I
actually use the <CEditCtrl>.SetSel and <CEditCtrl>.ReplaceSel methods to
write.

Thanks

skidmarks
 
Back
Top