Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Custom GDI+ class
How to change display settings: screen resolution, screen refresh rate
GDI+: Implementing image scrolling with inertia
Obtaining names and positions for shortcuts located on the Windows Desktop
Vertical Label control
Displaying dimmed window behind VFP top-level form
Enumerating devices installed on the local machine
How to generate GUID values
Printing Image File, programmatically set print page orientation to landscape
Monitoring clipboard content changes (VFP9)
Subclassing CommandButton control to create BackColor property
Disconnecting USB Mass Storage Device programmatically
Storing content of the Clipboard to a bitmap file
Adding a background image to VFP report (VFP9, ReportListener)
Browsing Windows Known Folders (Special Folders)
Splash Screen for the VFP application
How to put a vertical text scrolling on the form (a movie cast)
How to load a user profile
Compressing and decompressing files with Windows API Runtime Library routines
Generating random cryptographic keys
How to control Adobe Reader 9.0 (SDI mode) from VFP application
How to disable the Windows Clipboard (VFP9)
Detecting changes in connections to removable drives (VFP9)
Writing entries to custom Event Log
How to view icons stored in executable files (Icon Viewer)

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:
This code shows how to retrieve icon resources from EXE and DLL files using the ExtractIcon.

See also:
  • How to extract icon resources from EXE or DLL and save them in .ICO files
  • How to extract the icon resources from an EXE or DLL and save them in image files
  • Converting image file to .ICO file

      Members area. Log in to view this example.
      User name:
      Forgot your password?
      Sign up for
    the Membership

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    2952 bytes  
    Created: 2001-08-21 12:00:00  
    Modified: 2009-11-16 10:17:26  
    Visits in 7 days: 83  
    Listed functions:
    Printer friendly API declarations
    My comment:
    Notice that the icons drawn on the form disappear after covering this form by another window or minimizing and then maximizing it.

    An icon stored in memory can be saved as icon file. Code sample Converting image file to .ICO file explains how to create .ICO file from HICON handle.

    * * *
    Read Icons in Win32 article wriiten by John Hornick from MS Corp.

    MSDN article Using Icons describes how to perform certain tasks related to icons: creating, displaying, sharing Icon resources.

    * * *
    This is a screenshot of more advanced Icon Viewer built on ImageList API functions:

    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.

    Copyright 2001-2018 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.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    39 sec.Function: 'AVIStreamInfo'
    Function group: 'Windows Multimedia'
    59 sec.Updates
    1.28 min.Function: 'DrawDibDraw'
    Function group: 'Windows Multimedia'
    1.63 min.Function: 'DrawDibOpen'
    Function group: 'Windows Multimedia'
    1.93 min.
    Function group: 'Windows Controls'
    2.27 min.Example: 'How to download this reference`s archive through WinInet functions using InternetOpenUrl'
    2.55 min.Function: 'CeWriteRecordProps'
    Function group: 'Remote Application Programming (RAPI)'
    2.93 min.Function: 'Shell_NotifyIcon'
    Function group: 'Shell Functions'
    3.25 min.Function: 'NetUserAdd'
    Function group: 'Network Management'
    3.67 min.Function: 'waveOutPrepareHeader'
    Function group: 'Windows Multimedia'
    Advertise here!