|
-
April 22nd, 1999, 09:30 AM
#1
RICH EDIT CONTROL
I know this may sound like a stupid questions , but everytime i insert a rich edit control in my dialog box ( or forms) , and execute it , i receive an error message , cannot initialize empty control !!!1
-
April 22nd, 1999, 09:38 AM
#2
Re: RICH EDIT CONTROL
Hi,
You have just to insert the following line, before creating the CRichEditCtrl object:
AfxInitRichEdit( );
-
April 23rd, 1999, 06:02 AM
#3
Re: RICH EDIT CONTROL
Actually when we insert rich edit control at design time(not run time), we don't get the creation line in our source code. so where to call that function AfxInitRichEdit() ?
-
April 23rd, 1999, 09:14 AM
#4
Re: RICH EDIT CONTROL
You can call AfxInitRichEdit() in the constructor of the dialog where you are using the CRichEditCtrl.
-
April 23rd, 1999, 11:48 AM
#5
A better Approach !!
Hi,
A better recommended approach is to call AfxInitRichEdit()in your
CWinApp::InitInstance(). This is a Global function that will initialize
the richedit control by loading the necessay system DLL'S
Good Luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|