16,472
社区成员
发帖
与我相关
我的任务
分享
int i=0;
CPoint m_pt=0;
void CMmkView::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
CView::OnTimer(nIDEvent);
CClientDC dc(this);
if(i<3600)
{
dc.MoveTo(m_pt);
dc.LineTo(i/5,i/5);
m_pt=(i/5,i/5);
i+=5;
}
}
画完图为什么和下面不一样?
int i=0;
CPoint m_pt=0;
void CMmkView::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
CView::OnTimer(nIDEvent);
CClientDC dc(this);
if(i<3600)
{
dc.MoveTo(m_pt);
dc.LineTo(i/5,i/5);
m_pt.x=i/6;
m_pt.y=i/6;
i+=5;
}
BOOL LineTo(
int x,
int y
);
BOOL LineTo(
POINT point
);