Page 1 of 2
ImageList_LoadImage()

Posted:
Sep 2, 2003 @ 12:42am
by Variant

Posted:
Sep 2, 2003 @ 12:54am
by Orpe

Posted:
Sep 2, 2003 @ 12:58am
by Variant

Posted:
Sep 2, 2003 @ 12:59am
by Orpe

Posted:
Sep 2, 2003 @ 1:03am
by Variant

Posted:
Sep 2, 2003 @ 1:18am
by Orpe

Posted:
Sep 2, 2003 @ 1:32am
by Variant

Posted:
Sep 2, 2003 @ 1:37am
by Kzinti
IDI_FOLDERS looks like an integer, not a resource name.
Try MAKEINTRESOURCE(IDI_FOLDERS) instead of L"IDI_FOLDERS".

Posted:
Sep 2, 2003 @ 2:01am
by Variant
I'm already doing this... please guys. I'm sure I have the command right - its gotta be a problem with the format of the image I'm using. It compiles already! I just get a NULL pointer :)

Posted:
Sep 2, 2003 @ 3:25am
by damian
When trying to load the bitmap from a file, you did use the LR_LOADFROMFILE flag, right?

Posted:
Sep 2, 2003 @ 3:37am
by fzammetti
The documentation indicates that the third parameter, cx, is the width of each image. You have 16 in your code, yet you say that the image is 32x16x256. Shouldn't you have 32 in your code?
Also, are you actually working with an icon (.ico) file or some graphics format file like .bmp? It seems like you are dealing with an image file, in which case I believe the 6th parameter, uType. should be IMAGE_BITMAP instead of IMAGE_ICON as you have.
Both of those stuck out at me as possible problems.

Posted:
Sep 2, 2003 @ 4:12am
by Kzinti

Posted:
Sep 2, 2003 @ 6:52am
by Variant

Posted:
Sep 2, 2003 @ 12:35pm
by damian

Posted:
Sep 2, 2003 @ 1:38pm
by Variant