
CodePudding user response:
GetDocument generally in the View class, want to use it will have to add in the dialogthe statement and the implementation function
CodePudding user response:
CMainFrame * pMain=(CMainFrame *) AfxGetMainWnd ();The CView * pView=pMain - & gt; GetActiveView ();
CDocment pDoc=pView - & gt; GetDocument ();
CodePudding user response:
GetDocument is the CView class member functions, you must first get the CView class pointer