Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Winsock: retrieving Web pages using sockets (HTTP, port 80)
Reading and setting the priority class values for the current process and thread
Reading parameters of streams in AVI file
Uploading local file to FTP server with FtpPutFile
Generating UUID values from numbers
Getting a bit more than the _CLIPTEXT offers
How to display picture stored in enhanced-format metafile (*.emf)
Class for sound recording
Establishing connection using the SQLDriverConnect
Retrieving the interface–to–IP address mapping table
Using named pipes for interprocess communication
Retrieving the name of the primary domain controller (PDC) and join status information
Creating a mailslot
Analyzing character types in a specified string
Converting image file to .ICO file
Encapsulating access to the Windows Services in a class
GDI+: custom Slider control
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Setting the volume label
Starting a dialog box for connecting to network resources (mapping network drive)
Configuring DEVMODE structure for a printer
How to make a VFP form fading out when released (GDI+ version)
Reading list of folders and files on FTP server
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window

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:
Make sure that the source file is a valid BMP file.

Check more examples:
  • Printing the image of a FoxPro form
  • Storing screen shot of a form to a BMP file
  • Storing clipboard contents to a BMP file
  • How to print a BMP file

      Members area. Log in to view this example.
      User name:
      Forgot your password?
      Sign up for
    the Membership

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    2645 bytes  
    Created: 2001-12-10 18:19:31  
    Modified: 2011-12-10 09:20:22  
    Visits in 7 days: 94  
    Listed functions:
    Printer friendly API declarations
    My comment:
    The LoadImage function, being supplied with a valid bitmap file name, loads this file into the corresponding Bitmap structures and returns a Bitmap handle.

    After that the handle can be used for displaying this Bitmap on various devices (the display, the available printers etc.) as well as for manipulating with its data using other Gdi32 functions.

    With little changes this code can be used for printing bitmap files.

    Notice that the image displayed on the main VFP form is not "fixed", as it is when the _SCREEN property used.
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.

    Copyright © 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    19 sec.Function: 'DragQueryPoint'
    Function group: 'Shell Functions'
    36 sec.Function: 'OpenEventLog'
    52 sec.Function: 'Beep'
    1.12 min.Function: 'Escape'
    Function group: 'Printing and Print Spooler'
    1.4 min.Function: 'MAPISendDocuments'
    Function group: 'Simple MAPI'
    1.68 min.Example: 'Storing the environment strings in cursor'
    1.98 min.Function: 'CeRegOpenKeyEx'
    Function group: 'Remote Application Programming (RAPI)'
    2.27 min.Function: 'GetFileNameFromBrowse'
    Function group: 'Shell Functions'
    2.57 min.Function: 'capGetDriverDescription'
    Function group: 'Windows Multimedia'
    2.87 min.Function: 'GetCommandLine'
    Function group: 'Process and Thread'
    Advertise here!