This site is no longer active and is available for archival purposes only. Registration and login is disabled.

ImageList_LoadImage()


ImageList_LoadImage()

Postby Variant » Sep 2, 2003 @ 12:42am

Variant
pm Member
 
Posts: 7
Joined: Sep 2, 2003 @ 12:36am


Postby Orpe » Sep 2, 2003 @ 12:54am

User avatar
Orpe
pm Member
 
Posts: 78
Joined: Sep 16, 2001 @ 6:51pm
Location: Stockholm, Sweden


Postby Variant » Sep 2, 2003 @ 12:58am

Variant
pm Member
 
Posts: 7
Joined: Sep 2, 2003 @ 12:36am


Postby Orpe » Sep 2, 2003 @ 12:59am

User avatar
Orpe
pm Member
 
Posts: 78
Joined: Sep 16, 2001 @ 6:51pm
Location: Stockholm, Sweden


Postby Variant » Sep 2, 2003 @ 1:03am

Variant
pm Member
 
Posts: 7
Joined: Sep 2, 2003 @ 12:36am


Postby Orpe » Sep 2, 2003 @ 1:18am

User avatar
Orpe
pm Member
 
Posts: 78
Joined: Sep 16, 2001 @ 6:51pm
Location: Stockholm, Sweden


Postby Variant » Sep 2, 2003 @ 1:32am

Variant
pm Member
 
Posts: 7
Joined: Sep 2, 2003 @ 12:36am


Postby Kzinti » Sep 2, 2003 @ 1:37am

IDI_FOLDERS looks like an integer, not a resource name.

Try MAKEINTRESOURCE(IDI_FOLDERS) instead of L"IDI_FOLDERS".
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Variant » Sep 2, 2003 @ 2:01am

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 :)
Variant
pm Member
 
Posts: 7
Joined: Sep 2, 2003 @ 12:36am


Postby damian » Sep 2, 2003 @ 3:25am

When trying to load the bitmap from a file, you did use the LR_LOADFROMFILE flag, right?
damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby 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!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Kzinti » Sep 2, 2003 @ 4:12am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Variant » Sep 2, 2003 @ 6:52am

Variant
pm Member
 
Posts: 7
Joined: Sep 2, 2003 @ 12:36am


Postby damian » Sep 2, 2003 @ 12:35pm

damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby Variant » Sep 2, 2003 @ 1:38pm

Variant
pm Member
 
Posts: 7
Joined: Sep 2, 2003 @ 12:36am


Next

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum