Files
uTools-Manuals/src/docs/win32api/CreatelconFromResource.html
2020-06-06 20:39:00 +08:00

19 lines
1.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<body>
<FONT style="FONT: 12px 宋体" color=black>
<h3>函数功能</h3>该函数通过描述图标的资源位创建图标或光标。<br>
<h3>函数原型</h3>HICON CreatelconFuomResourcePBYTE presbits,DWORD dwResSize,BOOL flcon,DWORD dwVer<br>
DresDits:包含图标或光标资源位缓冲区的指针典型应用可通过调用LOOKuplconldFromDirectory 或LoadResource 函数载入这些位在Windows95也可调用LookuplconldFromDirectorvEx<br>
DwResSize:以字节为单位指定由DresbitS参数指定的位集合的大小。<br>
dwVer:指定由presbits参数指定的资源位的图标或光标格式的的版本号。参数可能是下列的值<br>
格式 dwVer<br>
Winsows2.x 0×00020000<br>
Winsows3.x 0×00030000<br>
所有基于 Microsoft Win32的应用程序使用Windows 3.x格式的图标和光标。<br>
<h3>返回值</h3>如果函数成功返回值是图标或光标的句柄如果函数失效返回值是NULL。想获得更多的错误信息请调用GetLastError函数。<br>
备注CreatelconFromResourceCreateteonFromResourceExCreatelconlndlrectGetlconlnfoLookuPlcondFromDirectory,LookuplconldFromDirectoryEx函数允许外壳应用程序和图标浏览器在整个系统中检查和使用资源。<br>
<h3>速查</h3>Windows NT3.1及以上版本Windows95及以上版本Windows CE:不支持;头文件winuser.h;库文件user32.lib。<br>
</body>
</html>