网站首页  词典首页

请输入您要查询的函数:

 

术语 createiconfromresource
释义 CreateIconFromResource
语法:
HICON CreateIconFromResource( PBYTE presbits,
DWORD dwResSize,
BOOL fIcon,
DWORD dwVer
);
CreateIconFromResource功能
该CreateIconFromResource函数创建一个从资源描述图标位图标或光标。
要指定所需高度或宽度,使用CreateIconFromResourceEx功能。
参数
presbits
[in]指向一个缓冲区包含的图标或光标资源位。这些位通常加载到LookupIconIdFromDirectory,LookupIconIdFromDirectoryEx电话,和LoadResource功能。
dwResSize
[in]指定的大小,以字节为单位设置的位指向的presbits参数。
FICON的
[in]指定是否图标或光标是要创建。如果此参数为true,一个图标是要创建的。如果它是假,游标是要创建的。
dwVer
[in]指定的图标或光标资源位版本号格式指向的presbits参数。此参数可以0x00030000。
返回值
如果函数成功,返回值是一个句柄,图标或光标。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
该CreateIconFromResource,CreateIconFromResourceEx,CreateIconIndirect,GetIconInfo,LookupIconIdFromDirectory和LookupIconIdFromDirectoryEx功能允许外壳应用程序和浏览器的图标,审查和使用整个系统资源。
该CreateIconFromResource函数调用CreateIconFromResourceEx传递LR_DEFAULTSIZE |为旗帜LR_SHARED。
当您使用完的图标,摧毁它使用DestroyIcon函数。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
图标概述,CreateIconFromResourceEx,CreateIconIndirect,GetIconInfo,LoadResource,LookupIconIdFromDirectory,LookupIconIdFromDirectoryEx
==英文原文==CreateIconFromResource Function
The CreateIconFromResource function creates an icon or cursor from resource bits describing the icon.
To specify a desired height or width, use the CreateIconFromResourceEx function.
Syntax
HICON CreateIconFromResource( PBYTE presbits,
DWORD dwResSize,
BOOL fIcon,
DWORD dwVer
);
Parameters
presbits
[in] Pointer to a buffer containing the icon or cursor resource bits. These bits are typically loaded by calls to the LookupIconIdFromDirectory , LookupIconIdFromDirectoryEx , and LoadResource functions.
dwResSize
[in] Specifies the size, in bytes, of the set of bits pointed to by the presbits parameter.
fIcon
[in] Specifies whether an icon or a cursor is to be created. If this parameter is TRUE, an icon is to be created. If it is FALSE, a cursor is to be created.
dwVer
[in] Specifies the version number of the icon or cursor format for the resource bits pointed to by the presbits parameter. This parameter can be 0x00030000.
Return Value
If the function succeeds, the return value is a handle to the icon or cursor.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
The CreateIconFromResource, CreateIconFromResourceEx, CreateIconIndirect , GetIconInfo , LookupIconIdFromDirectory, and LookupIconIdFromDirectoryEx functions allow shell applications and icon browsers to examine and use resources throughout the system.
The CreateIconFromResource function calls CreateIconFromResourceEx passing LR_DEFAULTSIZE|LR_SHARED as flags.
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 , CreateIconFromResourceEx , CreateIconIndirect , GetIconInfo , LoadResource , LookupIconIdFromDirectory , LookupIconIdFromDirectoryEx
==原始网址==http://msdn.microsoft.com/en-us/library/ms648060(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:15:24