Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to display Windows On-Screen Keyboard
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
How to upload a local file to FTP server using FtpPutFile
Using GetBinaryType (WinNT only) to determine the type of an executable file
Winsock: creating a socket that is bound to a specific service provider
Monitoring changes in a directory
Obtaining names and positions for shortcuts located on the Windows Desktop
Reading and setting system access privileges for the current process
A procedure for setting file times
Dial the Net Automatically
How to build UDP responder
How to display a dialog box with which the user can add a data source (DSN)
Locking mouse and keyboard input for the VFP application
Obtaining information about all user accounts on a server (WinNT only)
Retrieveing information about the active window (even if it is not owned by the calling process)
Testing MS Internet Explorer version installed
CryptoAPI: Collection of Providers class
Enumerating network interfaces on the local computer
Pocket PC: Folder Viewer
Retrieving list of available disk drives
A client for testing non-blocking Winsock server
Using the heap of the calling process to allocate memory blocks
Validating URLs using moniker functions
Changing pitch and speed of a wave file
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: 87  
    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.126.92)
    7.17 min.Example: 'Mapping and disconnecting network drives'
    3.04 hrs.
    10.43 hrs.Function: 'PostQuitMessage'
    Function group: 'Message and Message Queue'
    15.22 hrs.Function: 'waveOutGetNumDevs'
     Example: 'Retrieving graphic capabilities of default printer'
    15.82 hrs.Function: 'GetFullPathName'
    Function group: 'File Management'
     Function: 'GetWindowRect'
    16.28 hrs.Example: 'Placing On-screen Alert on top of all windows'
     Example: 'Building a tree of subdirectories for a given path using FindFile functions'
    16.82 hrs.Function: 'SetFilePointer'
    Function group: 'File Management'
    Google
    Advertise here!