Enhanced metafiles as resources?

  • Thread starter Thread starter David Webber
  • Start date Start date
D

David Webber

Guest
To allow for high DPI in dialogue images it would be convenient to store vector images as resources and draw them at the required size. (I'm sort of surprised that this isn't handled by Windows & MFC in the same way as icons and bitmaps.)

If I include an EMF file as a custom resource, load it, and get a HANDLE, can I simply cast that to an HENHMETAFILE and pass it to

BOOL PlayEnhMetaFile( HDC hdc, HENHMETAFILE hmf, const RECT *lprect );

in order to show it, eg, on an owner-draw button?

[Looking at related questions over the years, none that I've found seem to quite resolve this.]

Dave



David Webber Author of Mozart music notation software mozart music notation software

Continue reading...
 
Back
Top