Solved

Manipulation of text in a CEdit box

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

729 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