954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Using an Array to declare multiple bitmap handlers

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

keir.whitlock
Newbie Poster
11 posts since Apr 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You