?
Solved

Edit Buffers in Cedit.cpp

Posted on 1997-09-25
3
Medium Priority
?
230 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
[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
  • 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 300 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

777 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