Solved

RichEdit control

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 59
Add content to output file 4 72
NotAlone Challenge 20 93
noX challenge 17 144
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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