Getting-starting knowledge of MFC programming

zhaozj2021-02-16  45

Entrance knowledge

Ducument Template, manages three objects of Document / View / Frame,

Of course, cdoCtemplate has two derived CMULTIDOCTEMENT and CSINGLEDOCTEMPLATE

If you have to handle multiple documents, you have to use AddDDOCTemplate to add them to the system, actually documentation

The basic process of reading and writing is file / Open or File / New, then make CWINAPPXUAN select appropriate by message loop

CDOCMANAGER, which contains Pointer to point to the list, produces Document Template.

And, the variable cptrlist m_doclist is pointing to DOCMENT, cDocmentTemplate *

m_pdoctempate is a back finger, at the same time. Cptrlist M_PViewList can maintain a lot of views.

CFrameWnd member variable CView * m-pviewactive, pointing to the current VEW, CView has one

Member variable cdocment * m_pdocment points to the current DOCMENT.

转载请注明原文地址:https://www.9cbs.com/read-26828.html

New Post(0)