如何在不使用静态rect方法的情况下创建IDOMPathGeometryPtr?

问题描述 投票:0回答:1

我正在尝试使用Mako SDK创建一个IDOMPathGeometry。我打算用我自己的几何填充它,但我只能找到一个静态的create(...)方法,它需要一个FRect

如何创建一个我可以填充自己的空IDOMPathGeometry

c++ pdf mako-sdk
1个回答
0
投票

可以使用IJawsMako::createInstance(...)方法创建所有Mako SDK类。

在这种情况下,您将使用类似于以下内容的代码:

IDOMPathGeometryPtr pathGeometry = edlobj2IDOMPathGeometry(m_mako->createInstance(IDOMPathGeometry::classID()));
if (!pathGeometry)
{
    // Handle error
}
© www.soinside.com 2019 - 2024. All rights reserved.