BeginEditorCommand的原理
代码来源 :http://www.arch-pub.com/problem-about-CPropertyPage_10682271.html
CWnd* pAcadWnd = CWnd::FromHandle(adsw_acadMainWnd());
// or use acedGet... to retrieve a handle to the main CAD window
pAcadWnd->EnableWindow(TRUE);
ShowWindow(SW_HIDE); // this hides your dialog
pAcadWnd->SetFocus();
(hail to Charles McAuley's great book on ARX for CAD2k!)
代码来源2 :有效例子
https://forums.autodesk.com/t5/objectarx/arx-mfc-dll-begineditorcommand/td-p/312114
GetParent()->EnableWindow(TRUE);
ShowWindow(SW_HIDE);
ads_name ent;
ads_point pt1;
if(RTNORM == acedEntSel("Select something...", ent, pt1))
{
}
ShowWindow(SW_SHOW);
GetParent()->EnableWindow(FALSE);
EnableWindow(TRUE);