Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Enumerating Processes -- Win9*
How to display a user-defined icon in the MessageBox dialog
Browsing Windows Known Folders (Special Folders)
Displaying icons in the system tray (VFP9)
Adding a background image to VFP report (VFP9, ReportListener)
Testing Clipboard functions: emptying the clipboard
A class that encrypts and decrypts files using Cryptography API Functions
CryptoAPI: Collection of Providers class
Mapping and disconnecting network drives
Playing WAV sounds simultaneously
How to detect if additional monitor is connected and active
Creating a console window for Visual FoxPro application
How to print picture stored in enhanced-format metafile (*.emf)
How to find when the application started
How to print FoxPro form
Printing Image File, programmatically set print page orientation to landscape
Retrieving the IP-to-physical address mapping table
Uploading local file to FTP server with FtpPutFile
How to load a user profile
Storing content of the Clipboard to a bitmap file
Writing entries to custom Event Log
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
How to enable the SE_SHUTDOWN_NAME privilege for the application
Moving shortcut to a specified position on the Windows Desktop

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
click to open
Before you begin:
Before testing this code sample, uncheck "Auto arrange icons" and "Align icons to grid" options in the context menu on the Windows desktop.

On the VFP form, each round Shape control corresponds to a shortcut located on the Windows Desktop.

On initialization, the form reads the desktop shortuct locations and then arranges the shapes accordingly. Moving a shape on the form also moves the corresponding desktop shortcut (not otherwise, though it is also achievable).

See also:
  • Obtaining names and positions for shortcuts located on the Windows Desktop
  • How to create a desktop shortcut
      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:
    • ~
    6757 bytes  
    Created: 2012-02-09 23:15:51  
    Modified: 2012-02-19 18:42:54  
    Visits in 7 days: 219  
    Listed functions:
    Printer friendly API declarations
    My comment:
    On the Internet one can find utility software that allows user save and restore desktop shortcut layout in Windows. Using this code sample you can write your own Visual FoxPro shortcut layout utility that will work on 32- and 64-bit Windows from XP and up.
    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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    2 sec.Example: 'Printing text with the Escape function'
    4 sec.Function: 'GetEnhMetaFileHeader'
    Function group: 'Metafile'
    6 sec.Gallery
    8 sec.Example: 'Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)'
    11 sec.Function: 'FtpSetCurrentDirectory'
    Function group: 'Internet Functions (WinInet)'
    14 sec.Function: 'CeRapiInvoke'
    Function group: 'Remote Application Programming (RAPI)'
    15 sec.Function: 'SQLExecDirect'
    Function group: 'ODBC API'
    17 sec.Function: 'StartPage'
    Function group: 'Printing and Print Spooler'
    20 sec.Function: 'AVIFileGetStream'
    Function group: 'Windows Multimedia'
    23 sec.Function: 'CeCreateDatabase'
    Function group: 'Remote Application Programming (RAPI)'
    Advertise here!