
Untitled
By: a guest on
Mar 13th, 2009 | syntax:
C | size: 0.44 KB | hits: 197 | expires: Never
// link to 32bpp arrow bitmap with alpha-channel:
// http://localhostr.com/files/ed0569/arrows.bmp
hImageList = ImageList_Create(16, 16, ILC_COLOR32, 2, 2);
if (hImageList != NULL)
{
hArrows = (HBITMAP)LoadImage(hInstance, MAKEINTRESOURCE(IDB_ARROWS), IMAGE_BITMAP, 32, 16, LR_CREATEDIBSECTION);
if (hArrows != NULL)
{
iIndex = ImageList_Add(hImageList, hArrows, NULL);
DeleteObject(hArrows);
}
}