Solved

Manipulation of text in a CEdit box

Posted on 2000-05-01
4
210 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 50 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now