title: drawing square net in SDI MFC
body: <p>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.</p>
  
  <pre><code>COLORREF blueline = RGB(255, 0, 0);
      pen1.CreatePen(PS_SOLID, 3, blueline);
      pDC-&gt;SelectObject(&amp;pen1);
      pDC-&gt;MoveTo(0,80);
      pDC-&gt;LineTo(1024, 80);
      pDC-&gt;SelectObject(&amp;pen1);
  </code></pre>