LaTeX Editor - data problem

I am programming an application in MSVC++. It is a simple
text editor which needs to be able to enter text into an
open file. I have used CEditView for the editing facilities
but I don't know how to alter the document data structure.
How is this done?
LVL 1
NikWhitAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
You can call CEditView::GetEditCtrl() to get a reference to the edit control used by the edit view. Then, you can call the member functions of CEdit to get and change the text.
0
 
NikWhitAuthor Commented:
Adjusted points to 200
0
 
Tommy HuiEngineerCommented:
The CEditView doesn't really have a document data structure because the CEditView is using the CEdit control to manage its data.

If you are asking about how to manipulate the text in the edit control, then you will need to look up the various methods in CEdit, for example, SetSel, ReplaceSel, etc.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.