网站首页  词典首页

请输入您要查询的函数:

 

术语 drawicon
释义 DrawIcon
语法:
BOOL DrawIcon( HDC hDC,
int X,
int Y,
HICON hIcon
);
DrawIcon函数
该DrawIcon函数绘制到指定的设备环境的图标或光标。
若要指定额外的各种方案,使用DrawIconEx功能。
参数
hDC
[in]设备句柄断章取义,把该图标或光标将以抽签。
X
[in]指定逻辑x坐标图标的左上角。
y
[in]指定的逻辑y坐标图标的左上角。
hIcon的
[in]句柄要绘制图标。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
DrawIcon地方的图标的左上角在由X和Y参数指定的位置角落。该位置是受设备上下文的当前映射模式。
例如
有关示例,请参见显示一个图标。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
图标概述,CreateIcon,DrawIconEx,LoadIcon
==英文原文==DrawIcon Function
The DrawIcon function draws an icon or cursor into the specified device context.
To specify additional drawing options, use the DrawIconEx function.
Syntax
BOOL DrawIcon( HDC hDC,
int X,
int Y,
HICON hIcon
);
Parameters
hDC
[in] Handle to the device context into which the icon or cursor will be drawn.
X
[in] Specifies the logical x-coordinate of the upper-left corner of the icon.
Y
[in] Specifies the logical y-coordinate of the upper-left corner of the icon.
hIcon
[in] Handle to the icon to be drawn.
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
DrawIcon places the icon's upper-left corner at the location specified by the X and Y parameters. The location is subject to the current mapping mode of the device context.
Example
For an example, see Displaying an 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 , CreateIcon , DrawIconEx , LoadIcon
==原始网址==http://msdn.microsoft.com/en-us/library/ms648064(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:30:18