Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Enumerating ports that are available for printing on a specified server
Storing content of the Clipboard to a bitmap file
Using the DeleteFile
Using the SystemParametersInfo function
WAV file player
Drawing a rectangle using Windows regular edges and borders
Reading and setting Environment variables
A client for testing non-blocking Winsock server
How to empty the Recycle Bin
System and Local Time values
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
How to detect if additional monitor is connected and active
How to retrieve adapter information for the local computer (including MAC address)
Obtaining names and positions for shortcuts located on the Windows Desktop
Semi-transparent Form
Winsock: reading and setting socket options
Adding printer to the list of supported printers for the specified server
Creating irregularly shaped FoxPro form using transparency color key
Enumerating devices installed on the local machine
Enumerating ODBC Data Sources available on the local computer
Subclassing CommandButton control to create BackColor property
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Drawing standard Windows icons
How to initiate System shutdown
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: 134  
    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-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.224.79.93)
    4 sec.Example: 'How to extract frames from AVI files'
    37.95 min.Function: 'MoveWindow'
    12.36 hrs.Example: 'Reading security permissions for NTFS files and folders'
    Google
    Advertise here!