Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEgetmeta

HMETAFILE PEgetmeta (hObject)

 

HWND 

hObject

The handle returned from PEcreate.

 

This function returns the handle of a metafile that is managed by the ProEssentials object identified by hObject. Do not use the Windows DeleteMetafile function on this handle. ProEssentials will call this function when necessary.

 

Returns

HMETAFILE, the object's main metafile handle (the one it paints the object's image with.)

 

Comments

Use the returned handle with the Windows PlayMetafile API call to send the image to any device context. See "PRNTPAGE.TXT" in the directory where ProEssentials was installed to see a basic example of sending an image to a printer's DC. The manual also talks about this in Chapter 7, common Question 21.

 

See also: PEgetenhancedmeta