| | |
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
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
- Declaring multidimensional array in VBA (Visual Basic 4 / 5 / 6)
- how to declare array of struct (C#)
- Code Snippet: Give an object multiple same-event handlers (JavaScript / DHTML / AJAX)
- Reading in certain columns from CSV files into array C++ (C++)
- Array Project Problem (C++)
- Applet / Array help (Java)
- Is it wrong to have a very long program if i did not find another way? (C++)
- Array with names (C)
Other Threads in the C Forum
- Previous Thread: Im lost in my program, plesae please help
- Next Thread: How to control a CD-Drive
| Thread Tools | Search this Thread |
#include adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue mysql number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi





