I would guess for an MDI application the best way would be for the code creating the Dialog to pass the document object as a parameter to the Dialog. This could be done with a constructor or even a set(..) function.
Another consideration would be if your logic determines that the dialog always works with the Active Document. In that case you could use the CFrameWnd::GetActiveDocument() function.
The same logic would apply to obtaining the View object.
-pete I just can't seem to get back my IntelliSense
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.