Solved

RichEdit control

Posted on 1998-07-08
1
255 Views
Last Modified: 2013-11-19
I'm trying to use the RichEdit control in a MFC based application.  When I place it on a dialog, I can't seem to associate a member variable name with it. It just does not show up in class wizzard.  I then tried to use GetDlgItem to grab ahold of it but the dialog fails to create with that control in it.  What extra support does this control need to be used in a dialog?
0
Comment
Question by:cjs
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1318889
Before creating a rich edit control, you must call the LoadLibrary function to ensure that the RICHED20.DLL or RICHED32.DLL library is loaded. RICHED32.DLL is Rich Edit version 1.0. RICHED20.DLL is Rich Edit version 2.0. Windows NT versions 4.0 and later ship with both rich edit libraries. Windows 95 ships with only RICHED32.DLL, but RICHED20.DLL is compatible with Windows 95 and may be present if an application that uses it has been installed on the system. You may do so in the member function InitInstance of your application class.

Also check your dialog script. If you loaded RICHED32.DLL, specify "RichEdit" for the window class parameter. If you loaded RICHED20.DLL, specify RICHEDIT_CLASS for the window class parameter.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 37
EvenOdd challenge 10 90
Change to event 1 101
Making an alias 7 80
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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