 |
GetIconInfo ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetIconInfo function retrieves information about the specified icon or cursor. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-12-07 19:51:02 | | Modified: | 2011-01-17 16:29:51 | Visited in last 7 days: 38 |