<1>確定CBCGPDialogBar中按鈕可用
BOOL CMainFrame::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)
{
if(m_wndDlgBar.OnCmdMsg(nID, nCode, pExtra, pHandlerInfo))
{
return TRUE;
}
return CMDIFrameWndEx::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
}
<2>確定CBCGPDialogBar中關閉按鈕不顯示及不能拖動窗體
m_wndSysDlgBar.SetBCGStyle(CBRS_BCGP_RESIZE | CBRS_BCGP_AUTOHIDE);