Condividi tramite


CDrawingManager::DrawGradientRing

Draws a ring and fills it with a color gradient.

BOOL DrawGradientRing(
   CRect rect,
   COLORREF colorStart,
   COLORREF colorFinish,
   COLORREF colorBorder,
   int nAngle,
   int nWidth,
   COLORREF clrFace = (COLORREF)-1
);

Parameters

  • [in] rect
    A CRect parameter that specifies the boundary for the gradient ring.

  • [in] colorStart
    The first color for the gradient.

  • [in] colorFinish
    The last color for the gradient.

  • [in] colorBorder
    The color of the border.

  • [in] nAngle
    A parameter that specifies the initial gradient drawing angle. This value should be between 0 and 360.

  • [in] nWidth
    The width of the border for the ring.

  • [in] clrFace
    The color of the interior of the ring.

Return Value

Nonzero if successful; otherwise 0.

Remarks

The rectangle defined by rect must be at least 5 pixels wide and 5 pixels high.

Requirements

Header: afxdrawmanager.h

See Also

Reference

CDrawingManager Class

Hierarchy Chart