Solved

Edit Buffers in Cedit.cpp

Posted on 1997-09-25
3
209 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 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 member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

743 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

16 Experts available now in Live!

Get 1:1 Help Now