There is a CDocument::UpdateAllViews to notify the Views that somethig was changed in the Document .
There is a CView::GetDocument method that any View can use to access Document class instance.
More info - in MSDN: Document/View Architecture
Define "near to be finished".
Note that in most cases (especially for beginners) it is much better and faster to use AppWizard to properly create a new Doc/View project and then copy/move some missing code from your existing but not correctly working project.
I'm working in one app that i didn't create but now i must modified. The app when it was created wasn't orientated to doc/view but now i must send information from doc to view.
I'm working in one app that i didn't create but now i must modified. The app when it was created wasn't orientated to doc/view but now i must send information from doc to view.
You have not document-view architecture but must communicate between document and view...
One solution is clear: shoot the "architect"!
Last edited by ovidiucucu; November 7th, 2012 at 02:59 AM.
Bookmarks