C++/MFC: Adding text to CRichEditView?
Posted on 2001-06-12
I am completely new to MFC programming ... having written several 100's of applications in Delphi; the method for creating MFC applications under Visual C++ 5.0 is confusing me.
I'm trying to write a simple application which uses a RichEdit control to display status from another thread.
I want to use a the CRichEditView to allow me to display the status in color... then save it to a RTF file so I can be examined later.
I've only been at the MFC programming for a few hours; but I'm not sure how to best proceed.
I have a menu (for testing) which executes the following function:
ActiveView = (CRichMFCView*) GetActiveView();
Obviously I'm not sure what I'm doing... but the ide is a click on the Test menu and Send String option and the end result is a string appears in the current active view.
I was thinking the StreamIn() member function would do this for me... but it seems like overkill.
Seems like this should be a super simple thing to do.
If i were writing this in Delphi, I'd be done already.