創建分割窗體:
CSpiltterWnd m_cSpiltterWnd;
cSpiltterWnd.CreateStatic(this, 1, 2);//單行雙列型
//加入CtreeCtrl
CtreeCtrl m_treeCtrl;
m_treeCtrl.Create(dwStyle, CRect(), &m_cSpiltterWnd, m_cSpiltterWnd.IdFromRowCol(0, 0));//最重要的一步
同理建立其他控件,OK,搞定
創建分割窗體:
CSpiltterWnd m_cSpiltterWnd;
cSpiltterWnd.CreateStatic(this, 1, 2);//單行雙列型
//加入CtreeCtrl
CtreeCtrl m_treeCtrl;
m_treeCtrl.Create(dwStyle, CRect(), &m_cSpiltterWnd, m_cSpiltterWnd.IdFromRowCol(0, 0));//最重要的一步
同理建立其他控件,OK,搞定