Ottar Holstad
2006-07-11 08:35:17 UTC
Hi, I'm trying to directly manipulate some of the values in the header of a
metafile. Does it make sense at all, or is the header automatically updated
by windows to reflect the contents of the metafile, and hence overwriting
"my" values?
I have tried using GetEnhMetaFileHeader, but the data returned in the buffer
is only a copy of the data in the metafile, and there isn't anything like
SetEnhMetaFileHeader to copy the changes back to the metafile. I have also
tried to loop thru the data returned by GetEnhMetaFileBits, but the header
doesn't seem to be included in the data (itype is never EMR_HEADER).
metafile. Does it make sense at all, or is the header automatically updated
by windows to reflect the contents of the metafile, and hence overwriting
"my" values?
I have tried using GetEnhMetaFileHeader, but the data returned in the buffer
is only a copy of the data in the metafile, and there isn't anything like
SetEnhMetaFileHeader to copy the changes back to the metafile. I have also
tried to loop thru the data returned by GetEnhMetaFileBits, but the header
doesn't seem to be included in the data (itype is never EMR_HEADER).