Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Custom FTP Class for Visual FoxPro application
Custom HttpRequest class (WinHTTP)
Drawing icons associated with the VFP main window
HOWTO: Use the Win32 API to Access File Dates and Times
Printing Image File, programmatically set print page orientation to landscape
Splash Screen for the VFP application
Accessing Adobe Reader 7.0 main menu from VFP application
Attaching menu to a top-level form
Browsing Windows Known Folders (Special Folders)
Testing serial ports
How to prevent users from accessing the Windows Desktop and from switching to other applications
Using shared memory to exchange data between applications (processes)
Enumerating devices installed on the local machine
GDI+: sending image of FoxPro form to printer
Disconnecting USB Mass Storage Device programmatically
How to make a VFP form fading out when released (GDI+ version)
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
How to change display settings: screen resolution, screen refresh rate
Detecting changes in connections to removable drives (VFP9)
System Image List Viewer
How to make application automatically close all documents it opened
Switching between keyboard layouts
How to make a VFP form fading out when released (GDI version)
Creating a clipping region from the path selected into the device context of a form
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: 134  
    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-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 (
    13 sec.Updates
    27 sec.Function: 'GetFileAttributes'
    Function group: 'File Management'
    41 sec.Login
    53 sec.All Functions
    1.13 min.Solutions
    1.62 min.Function: 'GetDiskFreeSpaceEx'
    Function group: 'File System'
    1.88 min.Banners
    2.17 min.Examples
    2.47 min.All Functions
    Advertise here!