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
    11

    How to open large files in my MDI application?



    Hi,


    I am writing an MDI application using the AppWizard and i derived my view class

    from CEditView so that I have the basic functionality for opening and saving text documents. However, I am unable to open large files with it. How do i make it possible to open any file, whether text, document or even exe, just like

    in Wordpad?


    Raphael

  2. #2
    Join Date
    Mar 1999
    Posts
    9

    Re: How to open large files in my MDI application?



    The CRichEditView can open very large size of files. Look at the WORDPAD example from MFC for using RichDoc/RichView.


    Allen

  3. #3
    Join Date
    Apr 1999
    Posts
    11

    Re: How to open large files in my MDI application?



    Hi,


    I have downloaded the sample but it is a large and complicated workspace.

    I built a new application using AppWizard and derived my CView class from

    CRichEditView. When i run the program, it is able to open any document but

    then the contents of the documents are not displayed. Only a blank view.

    What functions should i change or add in to make it able to display the contents?


    Raphael

  4. #4
    Guest

    Re: How to open large files in my MDI application?

    maybe I'm too late :-(
    the RichEditCtrl is a RTF editor control. So by default, it loads RTF objects
    to prevent from this property, put this code in your CRichEditDoc derived class constructor :

    CMyRichEditDoc::CRichEditDoc()
    {
    m_bRTF = FALSE; // not an RTF document
    }



    this's a CRichEditDoc property.

    bye


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