Click to See Complete Forum and Search --> : How to open large files in my MDI application?
Raphael Phan
March 30th, 1999, 10:29 PM
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
Allen
March 31st, 1999, 12:45 AM
The CRichEditView can open very large size of files. Look at the WORDPAD example from MFC for using RichDoc/RichView.
Allen
Raphael Phan
March 31st, 1999, 11:48 PM
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
August 9th, 1999, 11:21 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.