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

x
?
Solved

Manipulation of text in a CEdit box

Posted on 2000-05-01
4
Medium Priority
?
217 Views
Last Modified: 2010-04-02
Hello,
   I was wondering if there is any way to bold sections text in a CEdit box, or if I need to use something else to be able to do that? Ultimately I would like to be able to do something like have in the box

<b>Piece of text 1</b> Piece of text 2
Regards,
Bob
0
Comment
Question by:tgemini
[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
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
yarond earned 200 total points
ID: 2765567
Instead of using a simple edit box, you can use the Rich Edit control (CRichEditCtrl if you want MFC).
0
 

Author Comment

by:tgemini
ID: 2767519
Is all the functionality of a CEdit available in a CRichEditCtrl? I am modifying a program that has already been written arround CEdit, and dont really want to be going changing too much if I dont have to.
0
 
LVL 1

Expert Comment

by:yarond
ID: 2768457
Basically yes. There may be small variations, but the easiest way to determine if they exist in the member functions you're using is to try and see... Or check in the functions description in MSDN...
I don't know exactly what does your code do with the CEdit, so I can't be more specific. You can hardly expect to toally replace an existing control with no work at all.
0
 

Author Comment

by:tgemini
ID: 2771242
Cheers
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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 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.

656 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