A CStatic control can display an enhanced metafile.

Loading an enhanced metafile from resources can be done in only a few steps. (Notice there is no error checking here.)
I do the following in OnInitDialog() to display a EMF in a CStatic.


CString strID;
strID.Format("#%d", IDR_ENHMETAFILE1);
HRSRC hRsrc = FindResource(NULL, strID, "ENHMETAFILE");
DWORD dwSize=SizeofResource(NULL, hRsrc);

HGLOBAL hGRes = LoadResource(NULL,hRsrc);
BYTE* prmf =(BYTE*)LockResource(hGRes);

HENHMETAFILE hMetaFile=SetEnhMetaFileBits(dwSize, prmf);
m_ctlPicture.SetEnhMetaFile(hMetaFile);