Hello.
I have a doc/view program. The view was derived from CEditView. It however, would not display text when I open a text file with text in it.
For example:
Source file:
---
a
b
c
---
When I open that file up, the program copies the text into a CStringArray object. I can change any line by adding or removing text. However, the program will not display the text in view. The only way to get it to display the text is if I type in the text manually.
The view was derived from CEditView. CEditView allows access to the CEditCtrl. Nonetheless, I cannot find a way to *insert* a CString into the CEditCtrl inside of CEditView. Furthermore, I tried drawing the text, but view still would not display anything.
Is it possible to add text or display text in the CEditView without having to manual type it in? CEditCtrl returns a CEdit reference object. There is a function, GetLine(line, string) to get text from a specific line. However, there are no functions to set the text at a specific line.
Thanks,
Kuphryn
I have a doc/view program. The view was derived from CEditView. It however, would not display text when I open a text file with text in it.
For example:
Source file:
---
a
b
c
---
When I open that file up, the program copies the text into a CStringArray object. I can change any line by adding or removing text. However, the program will not display the text in view. The only way to get it to display the text is if I type in the text manually.
The view was derived from CEditView. CEditView allows access to the CEditCtrl. Nonetheless, I cannot find a way to *insert* a CString into the CEditCtrl inside of CEditView. Furthermore, I tried drawing the text, but view still would not display anything.
Is it possible to add text or display text in the CEditView without having to manual type it in? CEditCtrl returns a CEdit reference object. There is a function, GetLine(line, string) to get text from a specific line. However, there are no functions to set the text at a specific line.
Thanks,
Kuphryn
