// 화면 중심에 사등분 선을 그린다.
CPaintDC dc(this);
COLORREF curColor = RGB(255,255,255);
dc.SetBkMode(TRANSPARENT);
CPen pen;
CPen *pOldpen;
pen.CreatePen(PS_SOLID, 0, curColor);
pOldpen = dc.SelectObject(&pen);
dc.SelectObject(&pOldpen);
dc.MoveTo(640, 0);
dc.LineTo(640, 960);
dc.MoveTo(0, 480);
dc.LineTo(1280, 480);
pen.DeleteObject();
CDialog::OnPaint();