Solved

Rich edit ctrl causes dialog creation failure

Posted on 1998-08-26
2
213 Views
Last Modified: 2013-11-19
When I use a rich edit control in a dialog, the dialog creation fails. When I change the control to a standard windows edit control, everything works fine. Any ideas as to what I am doing wrong? It's a simple dialog with a (rich) edit control and three pushbuttons.
0
Comment
Question by:Slarti
2 Comments
 
LVL 1

Expert Comment

by:rlarner
ID: 1321302
You should be getting a message in your debug window as to why the window creation failed.
0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1321303
This is an FAQ.

If you are using a rich edit control in a dialog box (regardless whether your application is SDI, MDI, or dialog-based), you must call AfxInitRichEdit once before the dialog box is displayed. A typical place to call this function is in your program’s InitInstance member function. You do not need to call it for each time you display the dialog box, only the first time. You do not have to call AfxInitRichEdit if you are working with CRichEditView.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

18 Experts available now in Live!

Get 1:1 Help Now