ObjectARX study notes (xv) - how to hide the command line acedGetAcadDockCmdLine ()

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); //隐藏
}
}

----------------
Disclaimer: This article is CSDN blogger original article "Little Qingfeng _jd", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/jiangdong2007/article/details/22940819

Guess you like

Origin www.cnblogs.com/mjgw/p/12392727.html