What function of the CDC class allows you to display a string onto the client area?
This doesn’t work:
void CpuzzleView::OnDraw(CDC* pDC)
{
CpuzzleDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
pDC->Rectangle(50,50,100,100);
pDC->MoveTo(75,75);
std::cout << "3";
}
You can use
CDC::TextOutorCDC::DrawTextEx.