15,978
社区成员
发帖
与我相关
我的任务
分享
static CSize m_szDot;
static COLORREF m_colorfill;
static COLORREF m_colorcir;
DrawDot(CDC* pDC,CPoint ptCenter,int nIndex)
{
Graphics graphics(pDC->m_hDC);
graphics.SetSmoothingMode(SmoothingModeHighQuality);
Pen pen(Color(GetRValue(m_colorcir), GetGValue(m_colorcir), GetBValue(m_colorcir)), 1);
graphics.DrawEllipse(&pen, ptCenter.x, ptCenter.y, m_szDot.cx, m_szDot.cy);
SolidBrush solidbrush(Color(GetRValue(m_colorfill)+5*nIndex, GetGValue(m_colorfill)+9*nIndex, GetBValue(m_colorfill)+10*nIndex));
graphics.FillEllipse(&solidbrush, ptCenter.x , ptCenter.y, m_szDot.cx, m_szDot.cy);
}
m_szDot.cx = m_szDot.cy = 20;
圆的半径是20