网站首页  词典首页

请输入您要查询的函数:

 

术语 copyicon
释义 CopyIcon
语法:
HICON CopyIcon( HICON hIcon
);
CopyIcon功能
复制功能的CopyIcon从另一个模块指定的图标当前模块。
参数
hIcon的
[in]的图标的句柄被复制。
返回值
如果函数成功,返回值是一个句柄重复的图标。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
该CopyIcon功能使应用程序或DLL来获得自己的句柄,由另一个模块拥有的图标。如果其他的模块被释放,应用程序图标将仍然能够使用的图标。
在结束前,应用程序必须调用DestroyIcon函数释放任何系统的图标关联的资源。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
图标概述,CopyCursor,DestroyIcon,DrawIcon,DrawIconEx
==英文原文==CopyIcon Function
The CopyIcon function copies the specified icon from another module to the current module.
Syntax
HICON CopyIcon( HICON hIcon
);
Parameters
hIcon
[in] Handle to the icon to be copied.
Return Value
If the function succeeds, the return value is a handle to the duplicate icon.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
The CopyIcon function enables an application or DLL to get its own handle to an icon owned by another module. If the other module is freed, the application icon will still be able to use the icon.
Before closing, an application must call the DestroyIcon function to free any system resources associated with the icon.
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 , CopyCursor , DestroyIcon , DrawIcon , DrawIconEx
==原始网址==http://msdn.microsoft.com/en-us/library/ms648058(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:29:54