Frage

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 ?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top