Solved

Manipulation of text in a CEdit box

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

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…
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 tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

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