voidCDDlg::DrawC(CPaintDC*dc)
{
CRectrect;
GetClientRect(&rect);
intx0=rect.Width()/2;
inty0=rect.Height()+100;
intC1=RGB(255,0,0);
intC2=RGB(0,0,255);
intx1,y1,x2,y2;
doubleth,r1=200.0,r2=400.0,c=0;
CPen*op,p;
p.CreatePen(0,1,RGB(0,0,0));
op=dc->SelectObject(&p);
for(th=3.14/4;thSelectObject(&p);
dc->MoveTo(x1,y1);
dc->LineTo(x2,y2);
}
dc->SelectObject(op);
p.DeleteObject();
}