Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Paints the image.

void Paint(
   CExtPaintManager * pPM,
   HDC hDC,
   const RECT & rc,
   e_paint_type_t ePT = __PAINT_NORMAL,
   BYTE nSCA = BYTE(255)
) const;
virtualvoid Paint(
   CExtPaintManager * pPM,
   HDC hDC,
   INT x,
   INT y,
   INT nDX = -1,
   INT nDY = -1,
   e_paint_type_t ePT = __PAINT_NORMAL,
   BYTE nSCA = BYTE(255)
) const;

Parameters

pPM
Pointer to the paint manager object. Set this parameter to NULL to indicate that the method should ignore this parameter.
hDC
Device context for painting.
x
Horizontal position of the upper-left image corner in logical units.
y
Vertical position of the upper-left image corner in logical units.
nDX
Destination width in logical units. Set this parameter to a negative value to indicate that the width of the original bitmap is to be used.
nDY
Destination height in logical units. Set this parameter to a negative value to indicate that the height of the original bitmap is to be used.
rc
Specifies the destination rectangle in logical units.
ePT
Specifies the bitmap type. The parameter can be one of the values defined in the e_paint_type_t enumeration.
nSCA
Specifies the source constant alpha. This parameter defines transparency level of painted icon. The 0 value means fully transparent level. The 255 value means non-transparent level.

See Also

CExtCmdIcon Overview | Class Members | Hierarchy Chart