Talal Tayyab
April 22nd, 1999, 09:30 AM
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
|
Click to See Complete Forum and Search --> : RICH EDIT CONTROL Talal Tayyab April 22nd, 1999, 09:30 AM 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 nunomas April 22nd, 1999, 09:38 AM Hi, You have just to insert the following line, before creating the CRichEditCtrl object: AfxInitRichEdit( ); April 23rd, 1999, 06:02 AM 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() ? nunomas April 23rd, 1999, 09:14 AM You can call AfxInitRichEdit() in the constructor of the dialog where you are using the CRichEditCtrl. April 23rd, 1999, 11:48 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |