Using Win32 functions in Visual FoxPro Image Gallery
Icon
..msdn
CopyIcon
DestroyIcon
DrawIcon
ExtractAssociatedIcon
ExtractIcon
GetIconInfo
LoadIcon
Code examples:
Converting image file to .ICO file
How to view icons stored in executable files (Icon Viewer) - II
Retrieving information about the specified icon
GetIconInfo
..msdn    Add comment     W32 Constants      Translate this page
The GetIconInfo function retrieves information about the specified icon or cursor.
Code examples:
Converting image file to .ICO file
How to view icons stored in executable files (Icon Viewer) - II
Retrieving information about the specified icon
Declaration:
BOOL GetIconInfo(
  HICON hIcon,          // icon handle
  PICONINFO piconinfo   // icon structure
);
FoxPro declaration:
DECLARE INTEGER GetIconInfo IN user32;
    INTEGER   hIcon,;
    STRING  @ piconinfo
Parameters:
hIcon
[in] Handle to the icon or cursor.

piconinfo
[out] Pointer to an ICONINFO structure. The function fills in the structure"s members.
Return value:
If the function succeeds, the return value is nonzero and the function fills in the members of the specified ICONINFO structure. If the function fails, the return value is zero.
Usage:
hIcon = ExtractIcon(0, cSourceFile, nIconIndex)

IF hIcon <> 0
    cBuffer = REPLICATE(CHR(0), ICONINFO_SIZE)
    = GetIconInfo(m.hIcon, @cBuffer)
ENDIF
My comment:
See also: ExtractIcon, SHGetStockIconInfo
Word Index links for the GetIconInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-07 19:51:02
Modified: 2011-01-17 16:29:51
Visited in last 7 days: 13
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.205.122.62)
2 day(s)Function: 'waveOutOpen'
Function group: 'Windows Multimedia'
 Function: 'NetApiBufferSize'
Function group: 'Network Management'
 Example: 'Obtaining names of local and global groups for current user (WinNT/XP/2K)'
 Example: 'GDI+: Scrolling through large image using the mouse'
 Function: 'GetFullPathName'
Function group: 'File Management'
 Example: 'Class for sound recording'
 Function: 'NetShareEnum'
 Function: 'CopyIcon'
 Function: 'CeRapiGetError'
Function group: 'Remote Application Programming (RAPI)'
Google
Advertise here!