?
Solved

Manipulation of text in a CEdit box

Posted on 2000-05-01
4
Medium Priority
?
218 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
  • 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

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
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 how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

850 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