?
Solved

LaTeX Editor - data problem

Posted on 1998-02-13
3
Medium Priority
?
210 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 600 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

770 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