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

    How to use CRichEditView/CRichEditDoc



    Hi,


    I'm working on an application which needs simple text editing features - something similar to a wordpad.


    W've a CRichEditDoc and CRichEditView derived classes having OLE container support application. I'm specifically trying to figure out code that will cause

    the selected file (due to the Open menu option) to be displayed in the RichEditView. Note i've tried to look at the MFC Wordpad sample but i've not been able to figure it out!


    Any help on this will be highly appreciated


    TIA

    Archana

  2. #2
    Join Date
    Apr 1999
    Posts
    11

    Same problem here, keep me updated



    Hi,


    I am also facing the same trouble


    raphael

  3. #3
    Join Date
    May 1999
    Location
    UK (South)
    Posts
    93

    Re: How to use CRichEditView/CRichEditDoc



    Do you know the format of the file you are trying to open?


    If you do then you can use Serialize(ar).


    If not I dont know.


    Simon

  4. #4
    Join Date
    May 1999
    Posts
    31

    Re: How to use CRichEditView/CRichEditDoc

    There is a sample project called WORDPAD in Visual C++ Ver 6.0. This contains the complete implementation of the Wordpad.Exe tool which we use for word processing. This sample uses CRichEditView, CRichEditDoc and CRichEditCntrItem classes. By extention, it also uses the CRichEditCtrl. This Sample code can also be got at http:\\www.Microsoft.com

    Alternatively, Microsoft ships richTx32.Ocx control in Visual Studio Ver 5.0 and above. This rich text control can be used to display and edit text in ASCII and RTF formats. The files saved in RTF formats could be opened in many word processing tools such as MS-Word. I have used this control in my project and it works excellent. This OCX control is very robust and can load and save huge files.

    Hope this helps you.

    ESC2102021021210220805

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