Solved

RichEdit control

Posted on 1998-07-08
1
257 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 84
fizzArray  challenge 1 83
Sed question 2 85
Work with App store 7 52
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

778 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