Solved

Rich edit ctrl causes dialog creation failure

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
difference between String.subString() and String.subSequence() 6 241
VBA "SendKeys" Syntax for Multiple Keystrokes 7 117
fix34  challenge 9 145
Fibonacci challenge 11 133
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…
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.

830 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