Message 1 of 2
how can I close Command Window?

Not applicable
09-11-2002
11:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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