2.2.6.22.8 PictureControl::SetDIB

Description

Sets a picture from a HDIB to be displayed in the control

Syntax

BOOL SetDIB( HDIB hDib )

Parameters

hDib
Handle to a Device Independent Bitmap

Return

return true when successful else false

Examples

EX1

#include <ocGDI.h>
#include <Control.h>

void PictureControl_SetDIB()
{
	PictureControl pc;
	HDIB            hDIB = load_dib("C:\\20by20.bmp");
	pc.SetDIB(hDIB);
}

Remark

See Also

Header to Include

Control.h