CStatic::SetEnhMetaFile
Visual Studio 2005
Associates a new enhanced metafile image with the static control.
HENHMETAFILE SetEnhMetaFile( HENHMETAFILE hMetaFile );
Parameters
- hMetaFile
-
Handle of the enhanced metafile to be drawn in the static control.
CStatic myStatic;
// Create a child enhanced metafile static control.
myStatic.Create(_T("my static"),
WS_CHILD|WS_VISIBLE|SS_ENHMETAFILE|SS_CENTERIMAGE,
CRect(10,10,150,50), pParentWnd);
// Set the image of the static control to be "myemf.emf."
myStatic.SetEnhMetaFile( ::GetEnhMetaFile(_T("myemf.emf")) );
Reference
CStatic ClassHierarchy Chart
CStatic::GetEnhMetaFile
STM_SETIMAGE