64,282
社区成员
发帖
与我相关
我的任务
分享
CDC *pDC= GetDC();
InvalidateRect(lastPointRec,FALSE);
CBrush detecBrush;
detecBrush.CreateSolidBrush(RGB(255,0,0));
pDC->SelectObject(&detecBrush);
int x1,y1,x2,y2;
if(m_radio1.GetCheck())
{
x1 =rect.left+108; y1 = rect.top+160;x2 =rect.left+116;y2 = rect.top+168;
}
if(m_radio2.GetCheck())
{
//m_radio1.SetCheck(0);
x1 =rect.left+121; y1 = rect.top+153;x2 =rect.left+129;y2 = rect.top+161;
//pDC->Ellipse(rect.left+243,rect.top+289,rect.left+251,rect.top+297);
}
if(m_radio3.GetCheck())
{
//m_radio1.SetCheck(0);
x1 =rect.left+113; y1 = rect.top+147;x2 =rect.left+121;y2 = rect.top+155;
//pDC->Ellipse(rect.left+223,rect.top+289,rect.left+231,rect.top+297);
}
pDC->Ellipse(x1,y1,x2,y2);
UpdateWindow();
lastPointRec = CRect(x1,y1,x2,y2);