Using an Array to declare multiple bitmap handlers

Reply

Join Date: Apr 2004
Posts: 11
Reputation: keir.whitlock is an unknown quantity at this point 
Solved Threads: 0
keir.whitlock's Avatar
keir.whitlock keir.whitlock is offline Offline
Newbie Poster

Using an Array to declare multiple bitmap handlers

 
0
  #1
May 20th, 2004
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC