CODMetafileComponent::LoadFromResource

Loads a metafile from a program resource.

Defined in: OdMetafileComp.cpp

Syntax

BOOL CODMetafileComponent::LoadFromResource(UINT nResId)

BOOL CODMetafileComponent::LoadFromResource(UINT nResId, HINSTANCE hInst)

Return Value

TRUE if successful; otherwise FALSE.

Parameters

nResId

Resource identifier to load from.

hInst

Instance handle to load resource from.

Comments

This function loads the metafile from a resource of type METAFILE. The GDI SetEnhMetaFileBits function is used to create the metafile.