void CFirst1View::OnDraw(CDC* pDC)
{
CFirst1Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
CRect rect;
GetClientRect(rect);
int x=rect.right/2+30;
int y=rect.bottom/2;
// pDC->TextOut(x,y,"o");
pDC->Ellipse(x-150,y-150,x+150,y+150);
pDC->Ellipse(x-5,y-5,x+5,y+5);
//p//DC->SetPixel(x,y,RGB(0,255,255));
pDC->MoveTo(x,y-150);
pDC->LineTo(x,y-145);
pDC->TextOut(x-7,y-140,"12");
SYSTEMTIME st;
CString strDate,strTime;
GetLocalTime(&st);
strTime.Format("%2d:%2d:%2d",st.wHour,st.wMinute,st.wSecond);
s=st.wSecond;
m=st.wMinute;
h=st.wHour;
int r1=120;
int r2=110;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余4页未读,立即下载