CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    44

    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



  2. #2
    Join Date
    Apr 1999
    Posts
    6

    Re: RICH EDIT CONTROL

    Hi,

    You have just to insert the following line, before creating the CRichEditCtrl object:

    AfxInitRichEdit( );



  3. #3
    Guest

    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() ?


  4. #4
    Join Date
    Apr 1999
    Posts
    6

    Re: RICH EDIT CONTROL

    You can call AfxInitRichEdit() in the constructor of the dialog where you are using the CRichEditCtrl.


  5. #5
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured