[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Edit Buffers in Cedit.cpp

Posted on 1997-09-25
3
Medium Priority
?
231 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

649 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