Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to display picture stored in enhanced-format metafile (*.emf)
How to print FoxPro form -- II
How to print picture stored in enhanced-format metafile (*.emf)
..msdn    Add comment     W32 Constants      Translate this page
The PlayEnhMetaFile function displays the picture stored in the specified enhanced-format metafile.
Code examples:
How to print picture stored in enhanced-format metafile (*.emf)
How to print FoxPro form -- II
How to display picture stored in enhanced-format metafile (*.emf)
BOOL PlayEnhMetaFile(
  HDC hdc,            // handle to DC
  HENHMETAFILE hemf,  // handle to an enhanced metafile
  CONST RECT *lpRect  // bounding rectangle
FoxPro declaration:
DECLARE INTEGER PlayEnhMetaFile IN gdi32;
    INTEGER   hdc,;
    INTEGER   hemf,;
    STRING  @ lpRect

[in] Handle to the device context for the output device on which the picture will appear.

[in] Handle to the enhanced metafile.

[in] Pointer to a RECT structure that contains the coordinates of the bounding rectangle used to display the picture. The coordinates are specified in logical units.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
When an application calls the PlayEnhMetaFile function, the system uses the picture frame in the enhanced-metafile header to map the picture onto the rectangle pointed to by the lpRect parameter.

This picture may be sheared or rotated by setting the world transform in the output device before calling PlayEnhMetaFile. Points along the edges of the rectangle are included in the picture.

An enhanced metafile can be embedded in a newly created enhanced metafile by calling PlayEnhMetaFile and playing the source enhanced metafile into the device context for the new enhanced metafile.
Word Index links for the PlayEnhMetaFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2003-05-22 16:46:14
Modified: 2003-05-22 16:48:59
Visited in last 7 days: 46
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
10 sec.Function: 'CryptUnprotectData'
Function group: 'Cryptography Reference'
18 sec.Function: 'CreateURLMonikerEx'
Function group: 'URL Monikers'
26 sec.Function: 'DefWindowProc'
Function group: 'Window Procedure'
36 sec.Function: 'accept'
Function group: 'Windows Sockets 2 (Winsock)'
45 sec.
Function group: 'Atom'
53 sec.Function: 'GetSystemInfo'
Function group: 'System Information'
1.03 min.Function: 'FtpGetCurrentDirectory'
1.22 min.Function: 'MAPISendDocuments'
1.38 min.Example: 'Winsock: how to retrieve a service information corresponding to a port'
1.52 min.Function: 'AVIStreamGetFrameClose'
Function group: 'Windows Multimedia'
Advertise here!