Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Creating a window using CreateWindowEx function
How to make application automatically close all documents it opened
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
Downloading files from the FTP server using InternetReadFile
Encapsulating access to the Windows Services in a class
Reading and setting Environment variables
Sending email messages with Simple MAPI
Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
How to download this reference`s archive through WinInet functions using InternetOpenUrl
How to find the application associated with a file name
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Using the DeleteFile
How to retrieve the number of print jobs queued for the printer
Placing a button on the VFP form as a new child window
DiskFreeSpace class
How to block the PrintScreen key
Using the CreateFile
Connecting a local device to a network resource
How to print a bitmap file
Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)
Printf-style formatted text output in VFP
Printing Image File, programmatically set print page orientation to landscape
Using Month Calendar Control (VFP9, Comctl32.dll)
Wininet last error description
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
This sample code shows how to copy the image of an active form to the Clipboard in CF_ENHMETAFILE format.

There is a similar example using Bitmap API functions copying data in CF_BITMAP format:
Copying picture of the active form to the Clipboard using Bitmap API functions
 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
  Buy this example for $10.00
Instant email delivery.

Read more...
 


User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
3154 bytes  
Created: 2003-05-23 09:11:59  
Modified: 2012-03-25 19:16:16  
Visits in 7 days: 150  
Listed functions:
BitBlt
CloseClipboard
CloseEnhMetaFile
CreateEnhMetaFile
DeleteEnhMetaFile
GetDeviceCaps
GetFocus
GetWindowDC
GetWindowRect
OpenClipboard
ReleaseDC
SetClipboardData
Printer friendly API declarations
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (23.22.212.158)
2.19 hrs.Solution: 'LanguageBar ActiveX Control'
7.26 hrs.Example: 'How to check whether the system is 32-bit or 64-bit'
10.16 hrs.Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
10.17 hrs.Function: 'GetBestInterface'
10.98 hrs.Example: 'Yet another modal dialog: now HTML-based'
 Example: 'Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.'
11.56 hrs.Example: 'Building a tree of subdirectories for a given path using FindFile functions'
Language: 'C#'
13.52 hrs.Function: 'EnumPorts'
14.33 hrs.Function: 'GdipGetImageWidth'
16.59 hrs.Function: 'SQLTables'
Function group: 'ODBC API'
Google
Advertise here!