ImageList_add Fehler
-
images = ImageList_Create(8,8,ILC_COLOR,NUM_TABS,0); HBITMAP h_bitmap; h_bitmap = (HBITMAP)LoadImage( NULL, "D:\\object.bmp", // name or identifier of image IMAGE_BITMAP, // type of image 8, // desired width 8, // desired height LR_LOADFROMFILE // load flags ); if(h_bitmap == NULL) { MessageBox(NULL, "Error loading bitmap", "a", MB_OK); } if(ImageList_Add(images, h_bitmap, NULL)==FALSE) MessageBox(NULL, "Error adding bitmap", "a", MB_OK);Es kommt immer der error: "Error adding bitmap" aber ich hab kA warum..
-
Witzbold, MSDN lesen würde helfen...:
ImageList_Add, MSDN schrieb:
Return Value
Returns the index of the first new image if successful, or -1 otherwise.
Siehe: http://msdn.microsoft.com/en-us/library/bb761512(VS.85).aspx
