网站首页  词典首页

请输入您要查询的函数:

 

术语 geticoninfo
释义 GetIconInfo
语法:
BOOL GetIconInfo( HICON hIcon,
PICONINFO piconinfo
);
GetIconInfo功能
该GetIconInfo函数检索有关指定图标或光标。
参数
hIcon的
[in]句柄图标或光标。检索有关标准图标或光标的信息,指定下列值之一。
IDC_APPSTARTING
标准的箭头和小沙漏光标。
IDC_ARROW
标准的箭头光标。
IDC_CROSS
十字线光标。
IDC_HAND
Windows 98/Me中时,Windows 2000/XP的:手形光标。
IDC_HELP
箭头和问号光标。
IDC_IBEAM
I型光标。
IDC_NO
削减圈光标。
IDC_SIZEALL
四向箭头光标指向北,南,东,西。
IDC_SIZENESW
双箭头光标指向指出,东北和西南。
IDC_SIZENS
双箭头光标指向指出,北部和南部。
IDC_SIZENWSE
双箭头光标指向指出,西北和东南。
IDC_SIZEWE
双箭头光标指向指出,西部和东部。
IDC_UPARROW
垂直箭头光标。
IDC_WAIT
沙漏光标。
IDI_APPLICATION
应用程序图标。
IDI_ASTERISK
星号图标。
IDI_EXCLAMATION
感叹号图标。
IDI_HAND
停止标志图标。
IDI_QUESTION
问号图标。
IDI_WINLOGO
Windows徽标图标。 Windows XP: Application icon.
piconinfo
[out]指向一个ICONINFO结构。函数填充结构的成员。
返回值
如果函数成功,返回值为非零和功能填写指定ICONINFO结构的成员。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
GetIconInfo创造的hbmMask和ICONINFO hbmColor成员的位图。调用应用程序必须管理这些位图并将其删除时,不再需要。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
图标概述,CreateIcon,CreateIconFromResource,CreateIconIndirect,DestroyIcon,DrawIcon,DrawIconEx,ICONINFO,LoadIcon,LookupIconIdFromDirectory
==英文原文==GetIconInfo Function
The GetIconInfo function retrieves information about the specified icon or cursor.
Syntax
BOOL GetIconInfo( HICON hIcon,
PICONINFO piconinfo
);
Parameters
hIcon
[in] Handle to the icon or cursor. To retrieve information about a standard icon or cursor, specify one of the following values.
IDC_APPSTARTING
Standard arrow and small hourglass cursor.
IDC_ARROW
Standard arrow cursor.
IDC_CROSS
Crosshair cursor.
IDC_HAND
Windows 98/Me, Windows 2000/XP: Hand cursor.
IDC_HELP
Arrow and question mark cursor.
IDC_IBEAM
I-beam cursor.
IDC_NO
Slashed circle cursor.
IDC_SIZEALL
Four-pointed arrow cursor pointing north, south, east, and west.
IDC_SIZENESW
Double-pointed arrow cursor pointing northeast and southwest.
IDC_SIZENS
Double-pointed arrow cursor pointing north and south.
IDC_SIZENWSE
Double-pointed arrow cursor pointing northwest and southeast.
IDC_SIZEWE
Double-pointed arrow cursor pointing west and east.
IDC_UPARROW
Vertical arrow cursor.
IDC_WAIT
Hourglass cursor.
IDI_APPLICATION
Application icon.
IDI_ASTERISK
Asterisk icon.
IDI_EXCLAMATION
Exclamation point icon.
IDI_HAND
Stop sign icon.
IDI_QUESTION
Question-mark icon.
IDI_WINLOGO
Windows logo icon. Windows XP: Application icon.
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. To get extended error information, call GetLastError .
Remarks
GetIconInfo creates bitmaps for the hbmMask and hbmColor members of ICONINFO. The calling application must manage these bitmaps and delete them when they are no longer necessary.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
Icons Overview , CreateIcon , CreateIconFromResource , CreateIconIndirect , DestroyIcon , DrawIcon , DrawIconEx , ICONINFO , LoadIcon , LookupIconIdFromDirectory
==原始网址==http://msdn.microsoft.com/en-us/library/ms648070(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:23:14