void CMouseDlg::DrawSquare(int X, int Y) { if ((m_iPrevX != X) || (m_iPrevY != Y)) { // Get the Device Context CClientDC dc(this); // Select null brush CBrush* oldBrush = dc.SelectStockObject(NULL_BRUSH); // Draw a square based on coord dc.Rectangle(m_iPrevX, m_iPrevY, X, Y); // Select old brush dc.SelectObject(oldBrush); m_iPrevX = -1; m_iPrevY = -1; } } void CMouseDlg::DrawCircle(int X, int Y) { if ((m_iPrevX != X) || (m_iPrevY != Y)) { // Get the Device Context CClientDC dc(this); // Select null brush CBrush* oldBrush = dc.SelectStockObject(NULL_BRUSH); // Draw an ellipse based on coord dc.Ellipse(m_iPrevX, m_iPrevY, X, Y); // Select old brush dc.SelectObject(oldBrush); m_iPrevX = -1; m_iPrevY = -1; } }>I am starting in vc++ and this is a little project of University.