// Pane类,继承自DockablePane类。即停靠窗口
class CXXXWnd : public CDockingPane
{
...
}
//main.h
CXXXWnd m_wndXXX; //声明
//main.cpp
//创建停靠窗口
if (!CreateDockingWindows())
{
TRACEO(未能创建停靠窗口\n");
return -1;
}
m_wndXXX.EnableDocking(CBRS_ALIGN_ANY);
m_wndXXX.SetControlBarStyle(~AFX_CBRS_CLOSE); //去掉pane右上角关闭按钮//m_wndXXX.SetControlBarStyle(AFX_CBRS_RESIZE); //去掉pane右上角关闭按钮
DockPane(&m_wndXXX);