bkhe1
07-03-2002, 09:40 PM
Hi,
I try to load and draw 5 images from the resource file but for some reason it draw only 3 images. Any clue why this could be happening.
#define MAX_IMAGE 5
int ids[] = {
IDI_IMAGE1;
IDI_IMAGE2;
IDI_IMAGE3;
IDI_IMAGE4;
IDI_IMAGE5;
};
// load the image from the resource file
for(i=0; i<MAX_IMAGE;i++){
pMe->m_pImages[i] = ISHELL_LoadResImage(pMe->a.m_pIShell,szResFile,ids[i]);
if(pMe->m_pImages[i] ==NULL)
{
return FALSE;
}
}
//Draw the images
for(i=0;i<MAX_IMAGE;i++)
{
ypos = 20 + i*AVATAR_IMGHGT + 2;
IIMAGE_Draw(pMe->m_pImages[i],0,ypos);
}
cheers,
Bhavna
I try to load and draw 5 images from the resource file but for some reason it draw only 3 images. Any clue why this could be happening.
#define MAX_IMAGE 5
int ids[] = {
IDI_IMAGE1;
IDI_IMAGE2;
IDI_IMAGE3;
IDI_IMAGE4;
IDI_IMAGE5;
};
// load the image from the resource file
for(i=0; i<MAX_IMAGE;i++){
pMe->m_pImages[i] = ISHELL_LoadResImage(pMe->a.m_pIShell,szResFile,ids[i]);
if(pMe->m_pImages[i] ==NULL)
{
return FALSE;
}
}
//Draw the images
for(i=0;i<MAX_IMAGE;i++)
{
ypos = 20 + i*AVATAR_IMGHGT + 2;
IIMAGE_Draw(pMe->m_pImages[i],0,ypos);
}
cheers,
Bhavna