Solved

LaTeX Editor - data problem

Posted on 1998-02-13
3
208 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

717 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