Home > Software engineering >  Novice, SDI in the document class how to obtain Cdockablepane derived class pointer?
Novice, SDI in the document class how to obtain Cdockablepane derived class pointer?

Time:11-12

Dock vs2010 SDI program, new window CClassView, inherited from the Cdockablepane class how to program the document class (assuming TestDoc) gets CClassView class pointer

CodePudding user response:

PDoc - & gt; GetActiveView (); ?????

CodePudding user response:

reference 1st floor schlafenhamster response:
pDoc - & gt; GetActiveView (); ?????

This return is not the main view of pointer
And pDoc no GetActiveView () this method

CodePudding user response:

((CMainFrame *) AfxGetMainWnd ()) - & gt; GetPane (ID_VIEW_CLASSVIEW)