1.画线 HDC hdc; hdc = ::GetDC(m_hWnd); ::MoveToEx(hdc, , , NULL); ::LineTo(hdc, , ); 2.填充矩形 HDC hdc; hdc = ::GetDC(m_hWnd); //::Rectangle(hdc, 0, 0, 1000, 1000); CRect rt(, , , ); CBrush pNewBrush(RGB(, , )); FillRect(hdc, rt, pNewBrush); 3.画矩形 HDC hdc…