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
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Storing screen shot of a form to bitmap file
Displaying icons in the system tray (VFP9)
Pocket PC: custom RAPI class for operating with files and folders on mobile device
GDI+: Implementing image scrolling with inertia
How to print a bitmap file
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Monitoring clipboard content changes (VFP9)
How to ping a remote site using IP Helper API calls
Custom HttpRequest class (WinINet)
Using NetWkstaTransportEnum to obtain MAC Address of remote server
Loading a string resource from an executable file
Enumerating Processes -- WinNT
GDI+: reading and writing metadata in JPEG and TIFF files
A class that encrypts and decrypts files using Cryptography API Functions
Reading the structure of VFP main menu
Using InternetSetFilePointer when resuming interrupted download from the Internet
Vertical Label control
How to view icons stored in executable files (Icon Viewer) - II
Obtaining names and positions for shortcuts located on the Windows Desktop
Displaying dimmed window behind VFP top-level 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
Versions:
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:
      Password:
     
     
      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: 135  
    Listed functions:
    CloseHandle
    FindWindow
    GetWindow
    GetWindowThreadProcessId
    OpenProcess
    ReadProcessMemory
    SendMessage
    VirtualAllocEx
    VirtualFreeEx
    WriteProcessMemory
    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  
    FreeTranslation.com 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 (54.198.246.116)
    15 sec.Function: 'GetTextCharacterExtra'
    Function group: 'Font and Text'
    29 sec.Function: 'gethostbyaddr'
    Function group: 'Windows Sockets 2 (Winsock)'
    41 sec.Function: 'GetFileAttributesEx'
    Function group: 'File Management'
    53 sec.Function: 'GetEnhMetaFileHeader'
    Function group: 'Metafile'
    1.07 min.Function: 'mmioOpen'
    Function group: 'Windows Multimedia'
    1.27 min.Example: 'Moving shortcut to a specified position on the Windows Desktop'
    1.48 min.Updates
    1.72 min.Function: 'GetFileAttributes'
    Function group: 'File Management'
    1.95 min.Login
    2.15 min.All Functions
    Google
    Advertise here!