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
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)
Winsock: sending email messages (SMTP, port 25)
How to display the Properties dialog box for a file (ShellExecuteEx)
Disk in drive A:
Using Font and Text functions
Detecting changes in connections to removable drives (VFP9)
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
How to download a file from the FTP server using FtpGetFile
How to play AVI file on the _screen
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Using EnumPrinters function to enumerate locally installed printers
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Splash Screen for the VFP application
Subclassing CommandButton control to create BackColor property
Vertical Label control
Creating irregularly shaped FoxPro form using transparency color key
Converting Unicode data from the Clipboard to a character string using a given code page
Creating a console window for Visual FoxPro application
Enumerating network resources
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: 77  
    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.16.17.90)
    6 sec.Function: 'LockWorkStation'
    1.18 hrs.Function: 'CryptGetHashParam'
    Function group: 'Cryptography Reference'
    9.47 hrs.Example: 'Obtaining names of local and global groups for current user (WinNT/XP/2K)'
    9.48 hrs.Function: 'GetMenuItemID'
    Function group: 'Menu'
     Example: 'Obtaining I/O counts for the current process'
    9.94 hrs.Example: 'GDI+: how to make VFP controls visually shake and shudder'
    11.97 hrs.Example: 'How to create non-blocking Winsock server'
    Language: 'C++'
     Example: 'How to block the PrintScreen key'
    13.23 hrs.Examples
    Page 12
     Example: 'Downloading files from the FTP server using InternetReadFile'
    Google
    Advertise here!