void JumpingDialog::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
int x=100;
int y=100;
CDC *pDC= GetDC();
CPen pen(PS_SOLID,5,0x00ff00);
CPen* op=pDC->SelectObject(&pen);
pDC->MoveTo(x,y-5);
pDC->LineTo(x,y+5);
pDC->MoveTo(x-5,y);
pDC->LineTo(x+5,y);
pDC->SelectObject(op);
pen.DeleteObject();
// Do not call CDialog::OnPaint() for painting messages
}
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
int x=100;
int y=100;
CDC *pDC= GetDC();
CPen pen(PS_SOLID,5,0x00ff00);
CPen* op=pDC->SelectObject(&pen);
pDC->MoveTo(x,y-5);
pDC->LineTo(x,y+5);
pDC->MoveTo(x-5,y);
pDC->LineTo(x+5,y);
pDC->SelectObject(op);
pen.DeleteObject();
// Do not call CDialog::OnPaint() for painting messages
}