keir.whitlock 0 Newbie Poster

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.