The CreateIconFromResourceEx function creates an icon or cursor from resource bits describing the icon.
HICON CreateIconFromResourceEx(
PBYTE pbIconBits, |
// pointer to icon or cursor bits |
DWORD cbIconBits, |
// number of bytes in bit buffer |
BOOL fIcon, |
// icon or cursor flag |
DWORD dwVersion, |
// Windows format version |
int cxDesired, |
// desired width of icon or cursor |
int cyDesired, |
// desired height of icon or cursor |
UINT uFlags |
// load resource flags |
); |
Format |
dwVersion |
Windows 2.x |
0x00020000 |
Windows 3.x |
0x00030000 |
All Win32-based applications use the Windows 3.x format for icons and
cursors.
Value |
Meaning |
LR_DEFAULTCOLOR |
Uses the default color format. |
LR_MONOCHROME |
Creates a monochrome icon or cursor. |
If the function succeeds, the return value is the handle to the icon or cursor.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
The CreateIconFromResourceEx, CreateIconFromResource, CreateIconIndirect, GetIconInfo, and LookupIconIdFromDirectoryEx functions allow shell applications and icon browsers to examine and use resources from throughout the system.
BITMAPINFOHEADER, CreateIconFromResource, CreateIconIndirect, GetIconInfo, LoadResource, LookupIconIdFromDirectoryEx
file: /Techref/os/win/api/win32/func/src/f09_19.htm, 6KB, , updated: 2001/6/24 14:10, local time: 2024/12/25 23:10,
3.145.88.111:LOG IN
|
©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://ecomorder.com/techref/os/win/api/win32/func/src/f09_19.htm"> CreateIconFromResourceEx</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.