iCAx开思工具箱
标题:
用CAA如何获取当前文档指针
[打印本页]
作者:
GuySky
时间:
2006-6-26 10:52
标题:
用CAA如何获取当前文档指针
用CATDocumentServices::Open函数可以获得具体文档的指针,如果我想获得当前打开的文档该用什么方法,麻烦各位高手指点一下
作者:
acoka
时间:
2006-6-28 08:54
in your command
CATFrmEditor* pEditor = GetEditor();
CATILinkableObject* pILinkableOnActive = NULL;
rc = pEditor->GetUIActiveObject().Search(
IID_CATILinkableObject,
(void**)&pILinkableOnActive
);
pDocument = pILinkableOnActive->GetDocument();
作者:
GuySky
时间:
2006-6-29 10:48
呵呵,解决了,谢谢acoka
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3