Solved

LaTeX Editor - data problem

Posted on 1998-02-13
3
204 Views
Last Modified: 2010-04-10
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?
0
Comment
Question by:NikWhit
3 Comments
 
LVL 1

Author Comment

by:NikWhit
ID: 1181994
Adjusted points to 200
0
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1181995
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
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1181996
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now