how can I close Command Window?

how can I close Command Window?

Anonymous
Not applicable
226 Views
1 Reply
Message 1 of 2

how can I close Command Window?

Anonymous
Not applicable
Hi,all.I want to close AutoCAD Command Window.The code I wrote is in the belowing :
void AsdkTest(){
CWnd* pCmdWnd=acedGetAcadDockCmdLine();
CWnd* pWnd1=pCmdWnd->GetParent();
CWnd* pWnd0=pWnd1->GetParent();
pWnd0->DestroyWindow();
}
when test is completed,the Command Window will be closed. But when I quit AutoCAD,it will give a ERROR message.
Please give me some help,thanks a lot
0 Likes
227 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Have you tried calling the acedGraphScr();
method?

 

regards

mark webb, autodesk


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi,all.I
want to close AutoCAD Command Window.The code I wrote is in the belowing :

void AsdkTest(){
  CWnd* pCmdWnd=acedGetAcadDockCmdLine();

  CWnd* pWnd1=pCmdWnd->GetParent();
  CWnd*
pWnd0=pWnd1->GetParent();
  pWnd0->DestroyWindow();
}

when test is completed,the Command Window will be closed. But when I quit
AutoCAD,it will give a ERROR message.
Please give me some help,thanks a
lot
0 Likes