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 FoxPro form -- II
How to print picture stored in enhanced-format metafile (*.emf)
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: 19
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2017 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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
7 sec.Function: 'OemToChar'
13 sec.Function: 'WNetDisconnectDialog'
18 sec.Function: 'InternetReadFile'
23 sec.Function: 'GetNumberFormat'
29 sec.Example: 'Transparent Menu Class (requires VFP9)'
37 sec.Function: 'PathIsURL'
43 sec.Function: 'LockWorkStation'
48 sec.Function: 'GetNearestColor'
54 sec.Function: 'SQLSetConfigMode'
1 min.Function: 'GdipDeleteMatrix'
Advertise here!