Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Adding supplementary data to AVI files
Converting a hexadecimal string to an integer
GDI+: cropping images
How to enumerate sessions and processes on a specified terminal server
How to write and read Window Properties for the specified window
MapiSendMail class for Visual FoxPro application
Reading data from INI files
Retrieving information about the specified icon
Retrieving list of files on the FTP directory
Using mailslots to send messages on the network
Enumerating devices installed on the local machine
GDI+: Creating thumbnails to preview images in a directory
GDI+: printing vertical text on VFP reports via generated images (VFP8)
Number of clipboard formats available
Setting the mouse capture to the specified window
GDI+: creating scaled copy of image file
GDI+: printing image file
How to display advanced Task Dialog (Vista)
How to enumerate cookies and URL History entries in the cache of the local computer
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Reading and setting system access privileges for the current process
Setting properties of the window: caption and user-defined value
The original LoadPicture() function in VFP returns valid handles to bitmaps, icons, cursors, and metafiles
Using Font and Text functions
Retrieving Printer Device Context using PrintDlg function

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
 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
 


User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
2576 bytes  
Created: 2001-09-17 12:00:00  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 68  
Listed functions:
DeleteDC
PrintDlg
Printer friendly API declarations
My comment:
There are several ways to get a printer device context. Once you obtain the value, you have many GDI functions available for sending graphical output to the printer: print text and images.

Flag PD_RETURNDEFAULT allows you to get the default printer device context without even a displaying the dialog box. I believe this option is quite useful.
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 (54.226.79.204)
2.04 hrs.Function: 'CeRegCreateKeyEx'
 Solution: 'FTP Class Library (VCX) for Visual FoxPro'
 Function: 'LogonUser'
2.91 hrs.Example: 'Obtaining some properties for the Windows desktop using the GetWindowPlacement function'
 Example: 'Reading the structure of VFP main menu'
Google
Advertise here!