www.mxdraw.com
|
本类封装了和用户交互选择实体的过程。
[ object, uuid(5BA5F9C4-708D-4E21-8F7D-9737DAA46D2A), dual, nonextensible, helpstring("IMxDrawUiPrEntity interface"), pointer_default(unique) ] interface IMxDrawUiPrEntity : IMxDrawUiPrBase;
MxDrawUiPrPoint.idl
例如:VC COM调用
IMxDrawUiPrEntityPtr selEnt; selEnt.CreateInstance(__uuidof( MxDrawXLib::MxDrawUiPrEntity )); selEnt->put_message(_T("选择图像对象")); if(selEnt->go() != 1) return; IMxDrawEntityPtr spEnt(selEnt->Entity()); if(spEnt == NULL) return; IMxDrawImageMarkPtr spImage; spEnt->QueryInterface(&spImage); if(spImage == NULL) return; spImage->put_ImageFile(_T("d:\mxcad.jpg"));