Solved

Rich edit ctrl causes dialog creation failure

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Generic progress indicator 6 116
Tab names are off by one 5 54
building a service to accessed via telnet client, want colors ? 4 88
mapAB Challlenge 35 143
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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