默认情况下生成的SDI窗口中的Output窗口在下方不是充满整个窗口的。要实现如下的充满的效果:
virtual BOOL FloatPane(CRect rectFloat, AFX_DOCK_METHOD dockMethod = DM_UNKNOWN, bool bShow = true) { return FALSE; } virtual BOOL CanFloat() const { return FALSE; } virtual BOOL CanBeClosed() const { return FALSE; }(2) 去掉自动掩藏按钮
//EnableAutoHidePanes(CBRS_ALIGN_ANY);(3) 去掉下拉箭头按钮
GetDockingManager()->EnableDockSiteMenu(FALSE);(4) Pane Tab中关闭按钮的去除
CDockablePane* pTabbedBar = NULL; m_wndClassView.AttachToTabWnd(&m_wndFileView, DM_SHOW, TRUE, &pTabbedBar); DWORD dwStyle = pTabbedBar->GetControlBarStyle(); pTabbedBar->SetControlBarStyle( dwStyle & ~AFX_CBRS_CLOSE); // 去除AFX_CBRS_CLOSE风格 m_wndProperties.EnableDocking(CBRS_ALIGN_ANY);