Solved

Edit Buffers in Cedit.cpp

Posted on 1997-09-25
3
225 Views
Last Modified: 2012-08-13
How to edit the buffers directly in Cedit.cpp for building an text editor
0
Comment
Question by:qarm
  • 2
3 Comments
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1170367
What are you talking about?  What is Cedit.cpp?  What buffers?  What do you mean be "edit the buffers directly"?

Are you asking how to change or edit the text in an edit box?  If so, then you get the window text as a string, make the changes and copy it back to the edit box.

0
 

Author Comment

by:qarm
ID: 1170368
Cedit.cpp is a class of Visual C++4 of Microsoft and this class has buffers and we need to be able to edit from a window
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 100 total points
ID: 1170369
CEdit is a class - not Cedit.cpp.

I told you how to edit the text associated with CEdit - you GetWindowText (which gives you the text associated with the CEdit edit control - you then make changes and SetWindowText to copy it back.

You cannot DIRECTLY get at the buffers - they are internal to the windows control, and the only way windows gives you to get at them is via GetWindowText/SetWindowText.

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

829 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