At 10/8/2004 07:26 AM, marwa elaskary wrote:
Hi , first :
Thank you for your quick response ,
Secondly :
The image is in a file(.bmp) on some where on the HD , i want to load (read) it and
display it again on another bmp file .
Add the bitmap file to your resouce (.rc) file and then load it from the resource file:
HBITMAP hBmp = (HBITMAP)::LoadImage(hResHandle,
MAKEINTRESOURCE(BMP_RESOURCE_NAME), IMAGE_BITMAP,
0, 0, LR_LOADTRANSPARENT | LR_LOADMAP3DCOLORS);Then attach it to the item you are displaying it on:
CButton button; button.SetBitmap(hBmp);
We always have used buttons to display bitmaps. I see in the new IDE that there is a "picture" resource. I haven't tried to use it.
Phil Daley < AutoDesk > http://www.conknet.com/~p_daley
_______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
