void CRedrawDemoView::OnLButtonDown(UINT nFlags, CPoint point)
{
CDC* pDC = GetDC(); // DC를 얻음
pDC->Rectangle(10,10,110,110); // 주어진 좌표에 사각형 그리기
ReleaseDC(pDC); // DC를 반환
CView::OnLbuttonDown(nFlags, point);
}
void CRedrawDemoView::OnPaint()
{
CPaintDC dc(this);
dc.Rectangle(120,10,220,110);
}

