CStatic::SetEnhMetaFile

HENHMETAFILE SetEnhMetaFile( HENHMETAFILE hMetaFile );

Return Value

The handle of the enhanced metafile previously associated with the static control, or NULL if no enhanced metafile was associated with the static control.

Parameters

hMetaFile

Handle of the enhanced metafile to be drawn in the static control.

Remarks

Call this member function to associate a new enhanced metafile image with the static control.

The enhanced metafile will be automatically drawn in the static control. The enhanced metafile is scaled to fit the size of the static control.

You can use various window and static control styles, including the following:

CStatic OverviewClass MembersHierarchy Chart

See Also   CStatic::GetEnhMetafile, STM_SETIMAGE