This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 13th, 2009  |  syntax: C  |  size: 0.44 KB  |  views: 221  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.   }
clone this paste RAW Paste Data