|
Hello,
I would like to create an icon resource in order for me to create the icon at run time. Do you have any idea how to prepare the raw data for CreateIconFromResourceEx? The following is the example for what I'm talking about. This is an example from WTL Docking windows by Sergey Klimov (kidd@ukr.net)
static BYTE pinnedIconData[]={
0x28, 0000, 0000, 0000, 0x0b, 0000, 0000, 0000,
0x16, 0000, 0000, 0000, 0x01, 0000, 0x04, 0000,
0000, 0000, 0000, 0000, 0x84, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0x10, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0x80, 0000,
0000, 0x80, 0000, 0000, 0000, 0x80, 0x80, 0000,
0x80, 0000, 0000, 0000, 0x80, 0000, 0x80, 0000,
0x80, 0x80, 0000, 0000, 0x80, 0x80, 0x80, 0000,
0xc0, 0xc0, 0xc0, 0000, 0000, 0000, 0xff, 0000,
0000, 0xff, 0000, 0000, 0000, 0xff, 0xff, 0000,
0xff, 0000, 0000, 0000, 0xff, 0000, 0xff, 0000,
0xff, 0xff, 0000, 0000, 0xff, 0xff, 0xff, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0x07, 0x70, 0000, 0000, 0000, 0000, 0000,
0000, 0x77, 0x77, 0000, 0000, 0000, 0000, 0000,
0000, 0x7f, 0x80, 0000, 0000, 0000, 0000, 0000,
0000, 0xf0, 0x07, 0x77, 0000, 0000, 0000, 0000,
0000, 0x0f, 0000, 0xf7, 0x70, 0000, 0000, 0000,
0000, 0000, 0x0f, 0x0f, 0x70, 0000, 0000, 0000,
0000, 0000, 0000, 0xf0, 0x70, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0x7f, 0xff, 0xff, 0xff, 0x81, 0xff, 0xff, 0xff,
0x80, 0xff, 0xff, 0xff, 0x80, 0x7f, 0xff, 0xff,
0x80, 0x7f, 0xff, 0xff, 0x90, 0x3f, 0xff, 0xff,
0xa4, 0x3f, 0xff, 0xff, 0xd2, 0x3f, 0xff, 0xff,
0xe5, 0x3f, 0xff, 0xff, 0xf8, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff};
HICON icons = CreateIconFromResourceEx(unpinnedIconData, 0xec, TRUE, 0x00030000, 11, 11, LR_DEFAULTCOLOR);
|
|
|
|