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
Solved

LaTeX Editor - data problem

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Fully specialized class template function 21 142
Exception thrown at 0x00007FFD5BC81F28 7 49
Microsoft C++ code failing in executable that worked 9 108
What is sub-make ? 2 71
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…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

860 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