Using Win32 functions in Visual FoxPro Image Gallery
Metafile
..msdn
CloseEnhMetaFile
CreateEnhMetaFile
DeleteEnhMetaFile
GetEnhMetaFile
GetEnhMetaFileHeader
PlayEnhMetaFile
Code examples:
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
How to print FoxPro form -- II
Storing screen shot of a form to enhanced metafile (*.emf)
CreateEnhMetaFile
..msdn    Add comment     W32 Constants      Translate this page
The CreateEnhMetaFile function creates a device context for an enhanced-format metafile. This device context can be used to store a device-independent picture.
Code examples:
How to print FoxPro form -- II
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
Storing screen shot of a form to enhanced metafile (*.emf)
Declaration:
HDC CreateEnhMetaFile(
  HDC hdcRef,            // handle to reference DC
  LPCTSTR lpFilename,    // file name
  CONST RECT* lpRect,    // bounding rectangle
  LPCTSTR lpDescription  // description string
);
FoxPro declaration:
DECLARE INTEGER CreateEnhMetaFile IN gdi32;
    INTEGER  hdcRef,;
    STRING   lpFilename,;
    STRING @ lpRect,;
    STRING   lpDescription

Parameters:
hdcRef
[in] Handle to a reference device for the enhanced metafile.

lpFilename
[in] Pointer to the file name for the enhanced metafile to be created.

lpRect
[in] Pointer to a RECT structure that specifies the dimensions (in .01-millimeter units) of the picture to be stored in the enhanced metafile.

lpDescription
[in] Pointer to a string that specifies the name of the application that created the picture, as well as the picture"s title.
Return value:
If the function succeeds, the return value is a handle to the device context for the enhanced metafile.
My comment:
MSDN: The left and top members of the RECT structure pointed to by the lpRect parameter must be less than the right and bottom members, respectively. Points along the edges of the rectangle are included in the picture.

If lpRect is NULL, the graphics device interface (GDI) computes the dimensions of the smallest rectangle that surrounds the picture drawn by the application. The lpRect parameter should be provided where possible.
Word Index links for the CreateEnhMetaFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-05-22 10:47:42
Modified: 2003-05-22 10:50:16
Visited in last 7 days: 30
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.161.73.123)
13 sec.Function: 'GetDC'
26 sec.Function: 'CloseClipboard'
40 sec.Function: 'CertFindCertificateInStore'
55 sec.Function: 'CeCreateProcess'
1.17 min.
Function group: 'Multilingual User Interface'
1.4 min.Function: 'CryptGenRandom'
1.58 min.
Function group: 'Bitmap'
1.8 min.
Function group: 'Security'
2.02 min.Function: 'FreeEnvironmentStrings'
2.27 min.Function: 'GdipDeleteMatrix'
Google
Advertise here!