HBITMAP SetBitmap( HBITMAP hBitmap );
Return Value
The handle of the bitmap previously associated with the static control, or NULL if no bitmap was associated with the static control.
Parameters
hBitmap
Handle of the bitmap to be drawn in the static control.
Remarks
Call this member function to associate a new bitmap with the static control.
The bitmap will be automatically drawn in the static control. By default, it will be drawn in the upper-left corner and the static control will be resized to the size of the bitmap.
You can use various window and static control styles, including the following:
CStatic Overview | Class Members | Hierarchy Chart
See Also CStatic::GetBitmap, STM_SETIMAGE, Bitmaps