Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Winsock: retrieving information about available transport protocols
Converting an integer value to a hexadecimal string
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
OS version and revision
Enumerating the subkeys of a user-specific key
Extracting the name and extension parts of a path string
Finding out if the current user is the Guest account
GDI+: printing image file
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
Reading parameters of streams in AVI file
Using the DeleteFile
Comparing dimensions of the VFP main window with _SCREEN properties
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
Dial the Net Automatically
Enumerating ODBC drivers available on the local computer
GetFocus returns a HWND value
Retrieving information about all users currently logged on to the workstation (WinNT only)
Using the Semaphore object to allow only one instance of VFP application running
Writing entries to custom Event Log
Creating a clipping region from the path selected into the device context of a form
Enumerating the subkeys for a given registry key
Finding the path to the VFP executable running
Retrieving IP statistics for the computer
Testing if a connection to an Url can be established
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: 100  
    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 (50.19.155.235)
    4 sec.Example: 'How to print FoxPro form -- II'
    1.17 hrs.Example: 'Winsock: how to retrieve a service information corresponding to a port'
    1.97 hrs.Function: 'DeletePort'
     Example: 'Converting command-line string to a set of Unicode argument strings (WinNT only)'
     Function: 'EndUpdateResource'
    3.47 hrs.Function: 'PaintDesktop'
    Function group: 'Painting and Drawing'
    5.34 hrs.Function: 'GetVersion'
    Function group: 'System Information'
     Example: 'Custom HttpRequest class (WinHTTP)'
    5.45 hrs.Example: 'Subclassing CommandButton control to create BackColor property'
    16.69 hrs.Function: 'OpenService'
    Google
    Advertise here!