Solved

RichEdit control

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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

615 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