class staticbitmap : public CStatic { // ... }; staticbitmap pic[4]; hbm[i] = (HBITMAP)LoadImage(NULL, filepath[i], IMAGE_BITMAP, 0, 0,LR_LOADFROMFILE|LR_CREATEDIBSECTION); GetObject(hbm[i], sizeof(bm[i]), &bm[i]); buf[i] = reinterpret_cast<unsigned char*>(bm[i].bmBits); // Play with buf[i] // ... pic[i].SetBitmap(hbm[i]);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)