这是CSDN上一个网友的问题
HDC hdc = CreateMetaFile("c:\\test.wmf");   //测试的目标文件路径
 HBITMAP hbmp = (HBITMAP)::LoadImage(NULL,"c:\\te12.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
 CDC memdc;
 memdc.CreateCompatibleDC(GetDC());
 HBITMAP hold = (HBITMAP)memdc.SelectObject(hbmp);
 BITMAP bmp;
 ::GetObject(hbmp,sizeof(bmp),&bmp);
 if(hbmp != NULL)
 {
  BitBlt(hdc,0,0,bmp.bmWidth,bmp.bmHeight,memdc.m_hDC,0,0,SRCCOPY);
 }
 memdc.SelectObject(hold);
 memdc.DeleteDC();
 CloseMetaFile(hdc);