网站首页  词典首页

请输入您要查询的函数:

 

术语 shgeticonoverlayindex
释义 SHGetIconOverlayIndex
语法:
int SHGetIconOverlayIndex( LPCTSTR pszIconPath,
int iIconIndex
);
SHGetIconOverlayIndex功能
返回索引系统中的图像列表覆盖图标。
参数
pszIconPath
[in]指向一个NULL结尾的最大长度MAX_PATH,其中包含的文件包含图标完全合格的路径字符串。
iIconIndex
[in]的图标的文件中指出,指数由pszIconPath。要求一个标准覆盖图标,设置pszIconPath为NULL,并iIconIndex为下列之一:
IDO_SHGIOI_SHARE
0x0FFFFFFF。覆盖图标表示一个共享文件夹。
IDO_SHGIOI_LINK
0x0FFFFFFE。覆盖图标表示一个链接文件夹或文件。
IDO_SHGIOI_SLOWFILE
0x0FFFFFFD。覆盖图标表示一个缓慢的文件。
IDO_SHGIOI_DEFAULT
0x0FFFFFFC。 Windows 7和更高版本。覆盖图标表示该项目是在设置默认。一个例子就是默认打印机。
返回值
返回索引系统中的图像列表覆盖图标如果成功,否则返回-1。
备注
图标覆盖是系统图像列表的一部分。他们有两个标识。一个是一个覆盖索引的标识与其他叠加覆盖在图像列表。另一个是一个图像索引标识实际图像。这两个指标相当于值,您分配给该iOverlay和iImage参数,分别为,当您添加一个图标,覆盖到一个ImageList_SetOverlayImage私人图像列表。 SHGetIconOverlayIndex返回覆盖索引。转换一个覆盖指数等值图像索引,请INDEXTOOVERLAYMASK。
注意:在图像已纳入系统的初始化过程中加载图像列表,它不能改变。该文件的名称和pszIconPath和iIconIndex指定索引仅用于识别图标覆盖。 SHGetIconOverlayIndex不能用于修改系统图像列表。
功能信息
最低DLL版本 shell32.dll 5.0或更新版本
自定义ImplementationNo
Headershlobj.h
import libraryshell32.lib
最低经营systemsWindows 2000,视窗千年
UnicodeImplemented为ANSI和Unicode版本。
参见
IShellIconOverlayIdentifier,IShellIconOverlay
==英文原文==SHGetIconOverlayIndex Function
Returns the index of the overlay icon in the system image list.
Syntax
int SHGetIconOverlayIndex( LPCTSTR pszIconPath,
int iIconIndex
);
Parameters
pszIconPath
[in] A pointer to a null-terminated string of maximum length MAX_PATH that contains the fully qualified path of the file that contains the icon.
iIconIndex
[in] The icon's index in the file pointed to by pszIconPath. To request a standard overlay icon, set pszIconPath to NULL, and iIconIndex to one of the following:
IDO_SHGIOI_SHARE
0x0FFFFFFF. The overlay icon that indicates a shared folder.
IDO_SHGIOI_LINK
0x0FFFFFFE. The overlay icon that indicates a linked folder or file.
IDO_SHGIOI_SLOWFILE
0x0FFFFFFD. The overlay icon that indicates a slow file.
IDO_SHGIOI_DEFAULT
0x0FFFFFFC. Windows 7 and later. The overlay icon that indicates that the item is the default in a set. One example is the default printer.
Return Value
Returns the index of the overlay icon in the system image list if successful, or -1 otherwise.
Remarks
Icon overlays are part of the system image list. They have two identifiers. One is a one-based overlay index that identifies the overlay relative to other overlays in the image list. The other is an image index that identifies the actual image. These two indexes are equivalent to the values that you assign to the iOverlay and iImage parameters, respectively, when you add an icon overlay to a private image list with ImageList_SetOverlayImage . SHGetIconOverlayIndex returns the overlay index. To convert an overlay index to its equivalent image index, call INDEXTOOVERLAYMASK .
Note After the image has been loaded into the system image list during initialization, it cannot be changed. The file name and index specified by pszIconPath and iIconIndex are used only to identify the icon overlay. SHGetIconOverlayIndex cannot be used to modify the system image list.
Function Information
Minimum DLL Versionshell32.dll version 5.0 or later
Custom ImplementationNo
Headershlobj.h
Import libraryshell32.lib
Minimum operating systemsWindows 2000, Windows Millennium
UnicodeImplemented as ANSI and Unicode versions.
See Also
IShellIconOverlayIdentifier , IShellIconOverlay
==原始网址==http://msdn.microsoft.com/en-us/library/bb762183(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 更新时间:2025/1/8 10:43:26