You guys probably hate Uni student questions, but I hate Uni, so we're even.
I'm writing an MDI app that has initally one Window open, with a splitter control across the middle. The top view is a CFormView, and the bottom is a CEditView.
Basically, someone clicks on buttons in the top (Form view) box, which fires off dialog boxes. The user then clicks on check boxes in these dialog boxes which in turn spits out text into the CEditView control. The dialog box is also preinitalised before it is displayed by looking at what is already in the CEditView type control, as a user can also directly input text into this control.
The contents of the CEditView control will be saved as it is a "script" file for something else.
My problems at the moment are numerous, not to mention a crash course in MFC and C++ over the last 2 months, but basically I need to find out:
1. How to access the CEditView object from the CFormView object, possibly something like AfxGetMainWnd->GetMDIChild->GetPane(1,0) ...
2. Currently the CFormView fires off the event to generate the dialog boxes when the user clicks on a button. Is this the correct class to handle this event? If so, how do I then add data to the CEditView from here (eg, question 1)
3. Has anyone got any example code for this?
Any help would be dearly appreciated.
Poor Stressed University Student