网站首页  词典首页

请输入您要查询的函数:

 

术语 destroyicon
释义 DestroyIcon
语法:
BOOL DestroyIcon( HICON hIcon
);
DestroyIcon函数
摧毁一个图标,并释放所有被占领的记忆的图标。
参数
hIcon的
[in]的图标的句柄被摧毁。该图标不能使用。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
这是只需要调用的图标,并以下列函数创建游标DestroyIcon:CreateIconFromResourceEx(如果没有LR_SHARED称为标志),CreateIconIndirect和CopyIcon。不要使用此函数来摧毁一个共享图标。一个共享图标是一样的,它已加载模块长期有效保留在内存中。下面的函数获取共享图标。
LoadIcon
的LoadImage(如果您使用LR_SHARED旗)
CopyImage(如果您使用LR_COPYRETURNORG国旗和hImage参数是一项共同的图标)
CreateIconFromResource
CreateIconFromResourceEx(如果您使用LR_SHARED旗)
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
图标概述,CopyIcon,CreateIconFromResource,CreateIconFromResourceEx,CreateIconIndirect
==英文原文==DestroyIcon Function
Destroys an icon and frees any memory the icon occupied.
Syntax
BOOL DestroyIcon( HICON hIcon
);
Parameters
hIcon
[in] Handle to the icon to be destroyed. The icon must not be in use.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
It is only necessary to call DestroyIcon for icons and cursors created with the following functions: CreateIconFromResourceEx (if called without the LR_SHARED flag), CreateIconIndirect , and CopyIcon . Do not use this function to destroy a shared icon. A shared icon is valid as long as the module from which it was loaded remains in memory. The following functions obtain a shared icon.
LoadIcon
LoadImage (if you use the LR_SHARED flag)
CopyImage (if you use the LR_COPYRETURNORG flag and the hImage parameter is a shared icon)
CreateIconFromResource
CreateIconFromResourceEx (if you use the LR_SHARED flag)
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Icons Overview , CopyIcon , CreateIconFromResource , CreateIconFromResourceEx , CreateIconIndirect
==原始网址==http://msdn.microsoft.com/en-us/library/ms648063(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:23:08