Sets a picture from a HBITMAP to be displayed in the control
BOOL SetBitMap( HBITMAP hBmp, BOOL bTakeOwnership = TRUE )
return true when successful else false
EX1
#include <ocGDI.h> #include <Control.h> void PictureControl_SetBitMap() { PictureControl pc; HDIB hDIB = load_dib("C:\\20by20.bmp"); HBITMAP hBMP = DDB_from_DIB(hDIB); pc.SetBitMap(hDIB); }
Control.h