www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawUiPrEntity 接口

本类封装了和用户交互选择实体的过程。

IDL
[ 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"));
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!