网站首页  词典首页

请输入您要查询的函数:

 

术语 createiconindirect
释义 CreateIconIndirect
语法:
HICON CreateIconIndirect( PICONINFO piconinfo
);
CreateIconIndirect功能
该CreateIconIndirect函数创建从ICONINFO结构的图标或光标。
参数
piconinfo
[in]指向一个ICONINFO结构函数用来创建该图标或光标。
返回值
如果函数成功,返回值是一个句柄,图标或光标创建的。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
该系统在ICONINFO复制结构的位图,然后再创建该图标或光标。因为系统可能会暂时选择一个设备上下文的位图的hbmMask及ICONINFO结构hbmColor成员不应该已被选中成为一个设备上下文。应用程序必须继续管理原来的位图并将其删除时,不再需要。
当您使用完的图标,摧毁它使用DestroyIcon函数。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
图标概述,DestroyIcon,ICONINFO
==英文原文==CreateIconIndirect Function
The CreateIconIndirect function creates an icon or cursor from an ICONINFO structure.
Syntax
HICON CreateIconIndirect( PICONINFO piconinfo
);
Parameters
piconinfo
[in] Pointer to an ICONINFO structure the function uses to create the icon or cursor.
Return Value
If the function succeeds, the return value is a handle to the icon or cursor that is created.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
The system copies the bitmaps in the ICONINFO structure before creating the icon or cursor. Because the system may temporarily select the bitmaps in a device context, the hbmMask and hbmColor members of the ICONINFO structure should not already be selected into a device context. The application must continue to manage the original bitmaps and delete them when they are no longer necessary.
When you are finished using the icon, destroy it using the DestroyIcon function.
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 , DestroyIcon , ICONINFO
==原始网址==http://msdn.microsoft.com/en-us/library/ms648062(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:21:06