HANDLE hBitmap = LoadImage(
AfxGetInstanceHandle(), // handle of the instance that contains the image
lpszName, // name of your image
IMAGE_BITMAP, // type of image
0, // desired width
0, // desired height
LR_DEFAULTSIZE | LR_LOADFROMFILE // load flags
);
CPictureHolder ph;
ASSERT(ph.CreateFromBitmap((HBITMAP) hBitmap);