网站首页  词典首页

请输入您要查询的函数:

 

术语 shupdateimage
释义 SHUpdateImage
语法:
void SHUpdateImage( LPCTSTR pszHashItem,
int iIndex,
UINT uFlags,
int iImageIndex
);
SHUpdateImage功能
通知说,在系统图像列表的形象已经改变了壳牌。
参数
pszHashItem
[in]指向一个字符串值,指定该文件包含图标完全合格的路径。使用的是缓冲区中返回的路径指向的IExtractIcon szIconFile参数::GetIconLocation。
iIndex
[in]一个整数,指定的从零开始的索引由pszHashItem指定的文件图标。使用的是指向了IExtractIcon piIndex参数::GetIconLocation价值。
uFlags
[in]一个无符号整数,指定的标志确定该图标的属性。设置uFlags的是指向了IExtractIcon pwFlags参数::GetIconLocation价值。这些标志是有关SHUpdateImage是GIL_NOTFILENAME和GIL_SIMULATEDOC。
iImageIndex
[in]一个整数,指定在正在更新的图标系统图像列表索引。
返回值
没有返回值。
备注
如果您不知道在图标的系统图像列表索引,您要更新,使用与uFlags SHGetFileInfo参数设置为SHGFI_SYSICONINDEX。
您必须使用IExtractIcon::与旧的图标,需要更新,而不是新的图标要替换这些参数GetIconLocation。
功能信息
最低DLL版本 shell32.dll版本4.7或更高版本
自定义ImplementationNo
Headershlobj.h
import libraryshell32.lib
2000年最低经营systemsWindows。,千年
UnicodeImplemented为ANSI和Unicode版本。
参见
SHChangeNotify
==英文原文==SHUpdateImage Function
Notifies the Shell that an image in the system image list has changed.
Syntax
void SHUpdateImage( LPCTSTR pszHashItem,
int iIndex,
UINT uFlags,
int iImageIndex
);
Parameters
pszHashItem
[in] A pointer to a string value that specifies the fully qualified path of the file that contains the icon. Use the path that is returned in the buffer pointed to by the szIconFile parameter of IExtractIcon::GetIconLocation .
iIndex
[in] An integer that specifies the zero-based index of the icon in the file specified by pszHashItem. Use the value that is pointed to by the piIndex parameter of IExtractIcon::GetIconLocation.
uFlags
[in] An unsigned integer that specifies the flags that determine the icon attributes. Set uFlags to the value that is pointed to by the pwFlags parameter of IExtractIcon::GetIconLocation. The flags that are relevant to SHUpdateImage are GIL_NOTFILENAME and GIL_SIMULATEDOC.
iImageIndex
[in] An integer that specifies the index in the system image list of the icon that is being updated.
Return Value
No return value.
Remarks
If you do not know the index in the system image list of the icon that you want to update, use SHGetFileInfo with the uFlags parameter set to SHGFI_SYSICONINDEX.
You must use IExtractIcon::GetIconLocation with the parameters of the old icon that needs to be updated, not those of the new icon you want to replace it with.
Function Information
Minimum DLL Versionshell32.dll version 4.7 or later
Custom ImplementationNo
Headershlobj.h
Import libraryshell32.lib
Minimum operating systemsWindows 2000., Millennium
UnicodeImplemented as ANSI and Unicode versions.
See Also
SHChangeNotify
==原始网址==http://msdn.microsoft.com/en-us/library/bb762258(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 13:19:14