Solved

Rich edit ctrl causes dialog creation failure

Posted on 1998-08-26
2
214 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

17 Experts available now in Live!

Get 1:1 Help Now