Home > Software engineering > VS2013 new MFC single document item, check the document/view architecture
VS2013 new MFC single document item, check the document/view architecture
Time:09-25
VS2013 MFC single document new project, do not check the document/view architecture,
Only CMainFrame and CChildView class and CXXXApp class the three main classes, but CChildView, inherited from the CWnd class now amended as CMainView inherited from CListView,
In the OnInitialUpdate this function, not be invoked, actually can VC6.0, not the new version, if must contain document class, or a better way,
CodePudding user response:
CodePudding user response:
CCreateContext Cc content too little! Such as m_pCurrentFrame?
CodePudding user response:
Such as
BOOL CMyCwndWnd: : OnCreateClient (LPCREATESTRUCT LPCS, CCreateContext * pContext) { CCreateContext CC. CC. M_pCurrentFrame=this; CC. M_pCurrentDoc=NULL; CC. M_pNewViewClass=RUNTIME_CLASS (CMyCwndListView); PCwndListView=(CMyCwndListView *) CreateView (& amp; CC, AFX_IDW_PANE_FIRST); return TRUE; }