ObjectARX学习笔记(十五)–如何隐藏命令行acedGetAcadDockCmdLine()
转自:https://blog.csdn.net/jiangdong2007/article/details/22940819
上图为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); //隐藏 } }