Solved

Edit Buffers in Cedit.cpp

Posted on 1997-09-25
3
228 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

733 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