BCGSuite for MFC
void CBCGPDrawManager::FillGradient2 ( CRect  rect,
COLORREF  colorStart,
COLORREF  colorFinish,
int  nAngle = 0 
)

Fills a rectangular area with the gradient color in the given direction.

Call this member function to fill a rectangular area with the gradient color in the direction specified by nAngel. The nAngel value should be in interval [0 - 360].

Parameters
rectSpecifies the bounding rectangle of the area to fill.
colorStartRGB value of the color to start with.
colorFinishRGB value of the color to finish with.
nAngleThe gradient direction.