Click to See Complete Forum and Search --> : How to use CRichEditView/CRichEditDoc


archana mandape
April 1st, 1999, 01:17 AM
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

Raphael Phan
April 1st, 1999, 03:02 AM
Hi,


I am also facing the same trouble


raphael

Simon Pettman
April 1st, 1999, 03:16 AM
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

Samuel
May 12th, 1999, 05:33 PM
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