CODMetafileComponent::Attach

BOOLCODMetafileComponent::Attach(const HENHMETAFILEhMetafile)

Attach the handle to the metafile component.

Defined in: OdMetafileComp.cpp

Return Value

TRUE if successful; otherwise FALSE.

Parameters

hMetafile

Handle to an enhanced metafile.

Comments

The metafile handle passed in is assigned to the m_hMetafile member. This function fails if the metafile component already has a valid metafile handle. The metafile passed in is not copied; it is used directly and deleted when the metafile component is destroyed. Do not delete the metafile handle passed into this function.