Using Win32 functions in Visual FoxPro Image Gallery
Icon
..msdn
CopyIcon
DestroyIcon
DrawIcon
ExtractAssociatedIcon
ExtractIcon
GetIconInfo
LoadIcon
Code examples:
Browsing Windows Known Folders (Special Folders)
Converting image file to .ICO file
Detecting changes in connections to removable drives (VFP9)
Displaying icons in the system tray (VFP9)
Displaying the associated icons and descriptions for files and folders
GDI+: custom Clock Control
GDI+: Storing DLL icon resources in image files
How to view icons stored in executable files (Icon Viewer)
How to view icons stored in executable files (Icon Viewer) - II
Retrieving information about the specified icon
Storing screen shot of a form to bitmap file
System Image List Viewer
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Windows Shell Icons displayed and exported to ICO files (Vista)
DestroyIcon
..msdn    Add comment     W32 Constants      Translate this page
Destroys an icon and frees any memory the icon occupied.
Code examples:
Displaying icons in the system tray (VFP9)
Browsing Windows Known Folders (Special Folders)
Detecting changes in connections to removable drives (VFP9)
Storing screen shot of a form to bitmap file
Windows Shell Icons displayed and exported to ICO files (Vista)
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
GDI+: custom Clock Control
Displaying the associated icons and descriptions for files and folders
How to view icons stored in executable files (Icon Viewer) - II
Converting image file to .ICO file
Declaration:
BOOL DestroyIcon(
  HICON hIcon   // handle to icon
);
FoxPro declaration:
DECLARE SHORT DestroyIcon IN user32 INTEGER hIcon
Parameters:
hIcon
[in] Handle to the icon to be destroyed. The icon must not be in use.
Return value:
If the function fails, the return value is zero.
My comment:
It is only necessary to call DestroyIcon for icons and cursors created with the CreateIconIndirect and the CopyIcon functions.

Do not use this function to destroy a shared icon. A shared icon is valid as long as the module from which it was loaded remains in memory. The following functions obtain a shared icon:
        - LoadIcon
        - LoadImage (if you use the LR_SHARED flag)
        - CopyImage (if you use the LR_COPYRETURNORG flag and the hImage parameter is a shared icon)
Word Index links for the DestroyIcon :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-21 12:00:00
Modified: 2001-11-26 16:03:18
Visited in last 7 days: 76
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.157.56)
5 sec.Function: 'AVIFileOpen'
10 sec.
Function group: 'GDI+ Text'
15 sec.Function: 'EnumPrinterData'
18 sec.
Function group: 'Cryptography Reference'
24 sec.Function: 'EnableWindow'
28 sec.Function: 'GdiplusShutdown'
32 sec.Function: 'GdiGetBatchLimit'
36 sec.Function: 'DeregisterEventSource'
41 sec.Function: 'GetMonitorInfo'
45 sec.Function: 'GetEnvironmentStrings'
Google
Advertise here!