CreateDibFromIconRes

Create an SECDib object from an icon resource

Defined in: OdIcon.h

Syntax

BOOL CreateDibFromIconRes( SECDib *pDib, LPICONRESOURCE lpIR, const int nImage );

BOOL CreateDibFromIconRes( SECDib *pDib, LPICONRESOURCE lpIR, const int nImage, const COLORREF crFill );

Return Value

Non-zero if successful; otherwise zero.

Parameters

pDib

Pointer to structure into which new DIB will be copied.

lpIR

Pointer to  ICONRESOURCE object containing icon resource information.

nImage

Index of image to be used.

crFill

Color to use for background of DIB.