The DrawIconEx function draws an icon or cursor in the client area of the window of the specified device context, performing the specified raster operations, and stretching or compressing the icon or cursor as specified.
BOOL DrawIconEx(
HDC hdc, |
// handle to device context |
int xLeft, |
// x-coordinate of upper left corner |
int yTop, |
// y-coordinate of upper left corner |
HICON hIcon, |
// handle to icon to draw |
int cxWidth, |
// width of the icon |
int cyWidth, |
// height of the icon |
UINT istepIfAniCur, |
// index of frame in animated cursor |
HBRUSH hbrFlickerFreeDraw, |
// handle to background brush |
UINT diFlags |
// icon-drawing flags |
); |
Value |
Meaning |
DI_COMPAT |
Draws the icon or cursor using the system default image rather than the user-specified image. |
DI_DEFAULTSIZE |
Draws the icon or cursor using the width and height specified by the system metric values for cursors or icons, if the cxWidth and cyWidth parameters are set to zero. If this flag is not specified and cxWidth and cyWidth are set to zero, the function uses the actual resource size. |
DI_IMAGE |
Draws the icon or cursor using the image. |
DI_MASK |
Draws the icon or cursor using the mask. |
DI_NORMAL |
Combination of DI_IMAGE and DI_MASK. |
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.
The DrawIconEx function places the icon’s upper-left corner at the location specified by the xLeft and yTop parameters. The location is subject to the current mapping mode of the device context.
CopyImage, DrawIcon, LoadImage
file: /Techref/os/win/api/win32/func/src/f18_2.htm, 7KB, , updated: 2001/6/24 12:14, local time: 2024/11/6 19:08,
44.192.67.10:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/os/win/api/win32/func/src/f18_2.htm"> DrawIconEx</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.