Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Custom GDI+ class
Storing content of the Clipboard to a bitmap file
How to print FoxPro form
Storing screen shot of a form to bitmap file
GDI+: Implementing image scrolling with inertia
How to print a bitmap file
Vertical Label control
Pocket PC: custom RAPI class for operating with files and folders on mobile device
Displaying icons in the system tray (VFP9)
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Displaying dimmed window behind VFP top-level form
Obtaining names and positions for shortcuts located on the Windows Desktop
Monitoring clipboard content changes (VFP9)
Splash Screen for the VFP application
How to make a VFP form fading out when released (GDI version)
Loading a string resource from an executable file
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
GDI+: sending image of FoxPro form to printer
Reading the structure of VFP main menu
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Extensible Storage Engine class library
How to view icons stored in executable files (Icon Viewer) - II
Browsing Windows Known Folders (Special Folders)
Custom HttpRequest class (WinHTTP)
Using GetCompressedFileSize (WinNT only)

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:
See also:
  • How to retrieve the size of a local file
  • Basic volume information
  • How to retrieve the size of a remote file (FTP)
  • DECLARE INTEGER GetCompressedFileSize IN kernel32;
        STRING lpFileName, INTEGER @lpFileSizeHigh
    LOCAL lcFilename, lnSizeLo, lnSizeHi, lnSizeActual
    lcFilename = "c:\Program Files\Microsoft Office\Office\Winword.exe"
    STORE 0 TO lnSizeLo, lnSizeHi
    lnSizeLo = GetCompressedFileSize (lcFilename, @lnSizeHi)
    ? "LO and HI values of actual size:", lnSizeLo, lnSizeHi

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    369 bytes  
    Created: 2001-11-14 18:18:24  
    Modified: 2013-09-10 16:34:21  
    Visits in 7 days: 28  
    Listed functions:
    Printer friendly API declarations
    My comment:
    Windows NT/2000/XP: Included in Windows NT 3.1 and later.
    Windows 95/98/Me: Unsupported.
    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-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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    7 sec.Function: 'StartPage'
    Function group: 'Printing and Print Spooler'
    17 sec.Function: 'SHAddToRecentDocs'
    Function group: 'Shell Functions'
    24 sec.Function: 'DrawText'
    Function group: 'Font and Text'
    31 sec.
    Function group: 'Path'
    36 sec.Function: 'FindExecutable'
    Function group: 'Shell Functions'
    45 sec.Function: 'SetupDiDestroyClassImageList'
    Function group: 'Setup API functions'
    51 sec.Function: 'DeleteEnhMetaFile'
    Function group: 'Metafile'
    56 sec.Links
    1 min.
    1.1 min.Function: 'NetApiBufferFree'
    Function group: 'Network Management'
    Advertise here!