CODDib::LoadIcon

Load the image from an icon resource.

Defined in: OdDib.cpp

Syntax

BOOL CODDib::LoadIcon(UINT nID, CDC *pDC, const COLORREF crFill)

BOOL CODDib::LoadIcon(LPCTSTR lpszFileName, const COLORREF crFill)

Return Value

Non-zero if successful; otherwise zero.

Parameters

nID

Integer resource ID.

*pDC

Device context for conversion from bitmap to DIB.

lpszFileName

The filename of an image file.

crFill

Fill color to use transparent areas of icon.