Home » Code Snippets » How can I get HENHMETAFILE from METAFILEPICT?

Sponsored Links

 

How can I get HENHMETAFILE from METAFILEPICT?

Attention: open in a new window. PDFPrintE-mail

 
METAFILEPICT mfp;
HDC hdc;
...
UINT nSize = GetMetaFileBitsEx(mfp.hMF, 0, NULL);
BYTE* buffer = new BYTE[nSize];
::GetMetaFileBitsEx(mfp.hMF, nSize, buffer);
HENHMETAFILE hEnhMetafile = SetWinMetaFileBits(nSize, buffer, hdc, &mfp);
delete buffer;
 
© www.sas.bg

Comments
Add New RSS
+/-
Write comment
Name:
Email:
 
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.