CRichEdit without OLE capabilities?
-
First of all excuse my english level, I'm just a begginer... I must develop a program that can edit files and send them using serial ports. In order to edit those files I've tought about using CRichEditViews in an MDI App. Doing this I've found that the RichEdits need the OLE capabilities enabled... Could I disable them? or there is another way (or control) that let me edit files using "Syntax highlighting" without being able to receive an Excel spreadsheet or another OLE object? Thank you in advance.
-
First of all excuse my english level, I'm just a begginer... I must develop a program that can edit files and send them using serial ports. In order to edit those files I've tought about using CRichEditViews in an MDI App. Doing this I've found that the RichEdits need the OLE capabilities enabled... Could I disable them? or there is another way (or control) that let me edit files using "Syntax highlighting" without being able to receive an Excel spreadsheet or another OLE object? Thank you in advance.
Why not create a SDI application in which your view class is derived from CFormView. Then you can insert a rich edit control on your form. If you choose this method there are a couple of things that you will need to consider: 1. Add the line AfxInitRichEdit(); to the InitInstance function of your app class. 2. Remove the line ResizeParentToFit(); from the OnInitialUpdate function of your view class. 3. In the OnInitialUpdate and OnSize functions of your view class to resize your rich edit window to fit your view class.