943,919 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 4084
  • C RSS
May 20th, 2004
0

Using an Array to declare multiple bitmap handlers

Expand Post »
Hi there,

Is it posible to declare multiple image handlers using an array?

Example:

HBITMAP ARRAY[10];

//Then use a loop to display a different bitmap for each member of the array?

while(count < 10){
mkey1[count] = LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP));

Something like that, obviously changing the bitmap each time it goes round the loop as well.

I have tried it myself, and the program seems to take the whole array as one handler, so i get multiple copies of the same image displayed.

Any ideas?

Thanks for any help you might have.

Keir
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
keir.whitlock is offline Offline
11 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Im lost in my program, plesae please help
Next Thread in C Forum Timeline: How to control a CD-Drive





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC