2.2.6.22.11 PictureControl::SetLeadBitmap

Description

Sets a picture from a LeadTools pBITMAPHANDLE to be displayed in the control

Syntax

BOOL SetLeadBitmap( LPVOID pLBmp, BOOL bTakeOwnership = FALSE )

Parameters

pLBmp
pointer to a LeadTools bitmap
bTakeOwnership
tells class to take ownership of LeadBitmap and delete when done

Return

return true when successful else false

Examples

EX1

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

void PictureControl_SetLeadBitmap(MatrixObject& matObj)
{
	PictureControl pc;
	LPVOID pLBmp = matObj.GetLeadBitmap();
	pc.SetLeadBitmap(pLBmp);
}

Remark

See Also

Header to Include

Control.h