在int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) 函数中 添加:
CString strControlView;
if (!m_wndControlView.Create(_T("控制"), this, CRect(0, 0, 200, 200), TRUE,
ID_VIEW_CONTROLVIEW, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | CBRS_LEFT | CBRS_FLOAT_MULTI))
{
TRACE0("未能创建“控制视图”窗口\n");
return FALSE;
}
m_wndControlView.EnableDocking(CBRS_ALIGN_ANY);
m_wndControlView.AttachToTabWnd(&m_wndFileView, DM_SHOW, TRUE, &pTabbedBar);
m_wndControlView.SetIcon(hClassViewIcon, FALSE);