문제

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