Solved

RichEdit control

Posted on 1998-07-08
1
251 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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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 tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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