Advertisement
Guest User

Untitled

a guest
Mar 13th, 2009
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1.   // link to 32bpp arrow bitmap with alpha-channel:
  2.   // http://localhostr.com/files/ed0569/arrows.bmp
  3.   hImageList = ImageList_Create(16, 16, ILC_COLOR32, 2, 2);
  4.   if (hImageList != NULL)
  5.   {
  6.     hArrows = (HBITMAP)LoadImage(hInstance, MAKEINTRESOURCE(IDB_ARROWS), IMAGE_BITMAP, 32, 16, LR_CREATEDIBSECTION);
  7.     if (hArrows != NULL)
  8.     {
  9.       iIndex = ImageList_Add(hImageList, hArrows, NULL);
  10.       DeleteObject(hArrows);
  11.     }
  12.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement