Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Enumerating data formats currently available on the clipboard
Custom GDI+ class
Mapping and disconnecting network drives
Winsock: sending email messages (SMTP, port 25)
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Converting Unicode data from the Clipboard to a character string using a given code page
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Disk in drive A:
How to display the Properties dialog box for a file (ShellExecuteEx)
Enumerating network resources
Detecting changes in connections to removable drives (VFP9)
How to download a file from the FTP server using FtpGetFile
Using EnumPrinters function to enumerate locally installed printers
Using Font and Text functions
Splash Screen for the VFP application
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
How to play AVI file on the _screen
Retrieving the name of the network resource associated with a local device
Vertical Label control
Subclassing CommandButton control to create BackColor property
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Creating a console window for Visual FoxPro 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
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: 155  
    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.234.42.16)
    27.25 min.Function: 'capGetDriverDescription'
    Function group: 'Windows Multimedia'
    8.88 hrs.Example: 'Enumerating ODBC Data Sources available on the local computer'
     Example: 'How to make a VFP form fading out when released (GDI+ version)'
    Language: 'Visual FoxPro'
    15.3 hrs.
    Function group: 'GDI+ Bitmap'
    18.86 hrs.Example: 'Enumerating Processes -- WinNT'
    22.27 hrs.Example: 'Browsing Windows Known Folders (Special Folders)'
    22.28 hrs.Function: 'WinHttpOpen'
    23.77 hrs.Function: 'WTSEnumerateSessions'
     Function: 'GdipCreateBitmapFromHICON'
    1 day(s)Function: 'LoadResource'
    Google
    Advertise here!