Im trying to make new doc type in mfc that reads data from another document type when needed. And my question is- Is this possible and how it should be done ?

有帮助吗?

解决方案

You can use CWinApp::GetFirstDocTemplatePosition() and CWinApp::GetNextDocTemplate() to iterate through the doc templates.

Then, for each doc template, use CDocTemplate::GetFirstDocPosition() and CDocTemplate::GetNextDoc() to iterate through the documents.

You will need to make the document data public or provide getters/setters.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top