The CreateIcon function creates an icon that has the specified size, colors, and bit patterns.
HICON CreateIcon(
|
HINSTANCE hInstance, |
// handle to application instance |
|
int nWidth, |
// icon width |
|
int nHeight, |
// icon height |
|
BYTE cPlanes, |
// number of planes in XOR bitmask |
|
BYTE cBitsPixel, |
// number of bits per pixel in XOR bitmask |
|
CONST BYTE *lpbANDbits, |
// pointer to AND bitmask array |
|
CONST BYTE *lpbXORbits |
// pointer to XOR bitmask array |
|
); |
If the function succeeds, the return value is the handle to an icon.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
The nWidth and nHeight parameters must specify a width and height supported by the current display driver, because the system cannot create icons of other sizes. To determine the width and height supported by the display driver, use the GetSystemMetrics function, specifying the SM_CXICON or SM_CYICON value.
CreateIcon applies the following truth table to the AND and XOR bitmasks:
|
AND bitmask |
XOR bitmask |
Display |
|
0 |
0 |
Black |
|
0 |
1 |
White |
|
1 |
0 |
Screen |
|
1 |
1 |
Reverse screen |
| file: /techref/os/win/api/win32/func/src/f09_17.htm, 5KB, , updated: 2001/6/24 12:53, local time: 2009/11/22 13:26,
38.107.191.103:LOG IN
|
| ©2009 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? Please DO link to this page! Digg it! <A HREF="http://www.piclist.com/techref/os/win/api/win32/func/src/f09_17.htm"> CreateIcon</A> |
| Did you find what you needed? |
|
The Backwoods Guide to Computer Lingo |
|
Peter Todd has released source and sample projects for his artwork, including his 3d wireframe cube renderer for the PIC 18f6520 This includes examples of hardware developed with free software tools such as gEDA/gschem/PCB, SDCC, gputils and picp all on Linux. http://petertodd.ca/art/source-code/ |
.