how can i draw square net ( like chess) in SDI MFC ? and how to determine the position for putting some more shape in specific position ? i have to use (Moveto) and (Lineto) and draw them 1 by 1 ? or using bitmap ? or easier way ? i tried in this way but it's not really smart. thank you.
COLORREF blueline = RGB(255, 0, 0);
pen1.CreatePen(PS_SOLID, 3, blueline);
pDC->SelectObject(&pen1);
pDC->MoveTo(0,80);
pDC->LineTo(1024, 80);
pDC->SelectObject(&pen1);