by fzammetti » Sep 2, 2003 @ 3:37am
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.
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"