2020
10-08
10-08
MFC Frame-Splitter模型实例原理解析
1.新建一个SDI工程,去掉“Document/Viewarchitecturesupport”2.添加CTreeView类的派生类CLeftView作为分隔器的左侧视图,添加CListView的派生类CRightView作为右边视图。可能需要#include<afxcview.h>3.在CLeftView类中添加成员变量CTreeCtrl&m_tree;在CRightView类中添加成员变量CListCtrl&m_list;并在构造函数中初始化CLeftView::CLeftView():m_tree(GetTreeCtrl()){}CRightView::CRightView():m_list(...
继续阅读 >