Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Validating the heap of the calling process
How to print FoxPro form -- II
Printf-style formatted text output in VFP
Reading and setting explicit Application User Model ID for the current process (Win7)
Retrieving IP statistics for the computer
Enumerating Volumes and Volume Mounting Points (NTFS)
Reading STARTUPINFO structure for the current VFP session
CryptoAPI: retrieving list of providers
Finding out if the current user is the Guest account
How to display advanced Task Dialog (Vista)
How to register custom Event Log source
Using the FindMediaType function
Drawing a window caption using the DrawCaption routine
Enumerating the subkeys of a user-specific key
OS version and revision
Reading and setting system access privileges for the current process
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Using GetSysColor
Writing entries to custom Event Log
Obtaining a handle to the desktop associated with the calling thread
Obtaining information about all user accounts on a server (WinNT only)
Winsock: changing the byte ordering
Accessing Windows Control Panel from VFP Application
An alternative way of setting Form.Closable to False
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: 80  
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 (23.20.196.179)
4 sec.Example: 'Pocket PC: System Registry Viewer'
18.27 min.Function: 'send'
Function group: 'Windows Sockets 2 (Winsock)'
18.42 min.Example: 'Who owns the Windows Clipboard'
1.04 hrs.
 Function: 'GetVersionEx'
5.16 hrs.Function: 'GetDlgItem'
 Function: 'LocalSize'
8.64 hrs.Example: 'GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file'
12.35 hrs.Function: 'DeleteObject'
Google
Advertise here!