Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to view system icons for the classes installed on the local machine
Printing text on the client area of the main VFP window
Testing if a connection to an Url can be established
Using FillMemory
Using FrameRgn for displaying system colors
Winsock: creating a socket that is bound to a specific service provider
Displaying standard progress dialog box when copying files
GDI+: printing vertical text on VFP reports via generated images (VFP9)
Finding the path to the VFP executable running
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
Pocket PC: Folder Viewer
Testing MS Internet Explorer version installed
Validating URLs using moniker functions
Comparing dimensions of the VFP main window with _SCREEN properties
Enumerating the subkeys for a given registry key
OS version and revision
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
Extracting the name and extension parts of a path string
Retrieving information about all users currently logged on to the workstation (WinNT only)
Using the DeleteFile
Winsock: retrieving information about available transport protocols
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
Reading parameters of streams in AVI file
Animating a transition of the VFP form (a wire-frame rectangle)
How to view system icons for the classes installed on the local machine

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
Before you begin:
The bitmap images for the classes installed on the machine are stored in some system area. These images are more of a general kind and illustrate functionality groups rather than individual classes.

With a few API calls VFP application can access these images and display them in TreeView and ListView controls as icons.


As the picture above shows, the list is definitely OS and machine configuration specific.

See also:
  • System Image List Viewer
  • Displaying the associated icons and descriptions for files and folders
  • How to find an application associated with the file name
  • How to obtain Content-Type value for a file type from the System Registry
  •  
      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:
    • ~
    5011 bytes  
    Created: 2008-12-18 18:05:42  
    Modified: 2010-05-13 09:58:02  
    Visits in 7 days: 102  
    Listed functions:
    ImageList_GetImageCount
    SendMessage
    SetupDiDestroyClassImageList
    SetupDiGetClassImageIndex
    SetupDiGetClassImageListEx
    Printer friendly API declarations
    My comment:
    For me the most interesting part in this code is not the getting access to the image list but the way the bitmaps from it are made icons in the TreeView control.
    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.231.49)
    4 sec.Example: 'Using the MessageBox Win32 function'
    7.38 min.Example: 'Converting long file names to the short format and vice versa'
    7.45 min.Example: 'How to retrieve the number of print jobs queued for the printer'
    1.16 hrs.Example: 'WAV file player'
    6.64 hrs.Function: 'GetCurrentProcess'
    Function group: 'Process and Thread'
     Function: 'mmioDescend'
     Function: 'GdipDeleteGraphics'
    Function group: 'GDI+ Graphics'
    10.93 hrs.Example: 'Storing screen shot of a form to bitmap file'
    12.7 hrs.Example: 'Using shared memory to exchange data between two FoxPro applications'
     Example: 'Hiding mouse cursor'
    Google
    Advertise here!