WARN("Desired images do not match received images : Previous image number %i Previous images in list %i added %i expecting total %i, Images in list %i\n",
infoPtr->nNumBitmaps,nCount,imagecount-nCount,
infoPtr->nNumBitmaps+nButtons,imagecount);
INTimagecount=ImageList_GetImageCount(himlDef);
INTadded=imagecount-nCount;
if(nButtons==0)/* wParam == 0 is special and means add only one image */
{
ImageList_SetImageCount(himlDef,nCount+1);
}elseif(added<nButtons){/* if not enough buttons, grow the list */
ImageList_SetImageCount(himlDef,nCount+nButtons);
}elseif(added>nButtons){
TRACE("Added more images than wParam: Previous image number %i added %i while nButtons %i. Images in list %i\n",