如何隐藏命令行acedGetAcadDockCmdLine()
上图为CAD2010命令行窗口类继承结构分析。CWnd* pWnd = acedGetAcadDockCmdLine()->GetParent()->GetParent()->GetParent();
if(pWnd != NULL)
{
CControlBar* pControlBar = static_cast<CControlBar*>(pWnd);
if(pControlBar != NULL)
{
CString strTmp;
pControlBar->GetWindowText(strTmp);
MessageBox(NULL,_T("FD"),strTmp,1);//命令行CControlBar
pControlBar->ShowWindow(SW_SHOW); //显示
pControlBar->ShowWindow(SW_HIDE); //隐藏
}
}
页:
[1]