title: How to display an int in WinApi (C++)
body: <p>I'm struggling with displaying of an int in  WinApi in C++. I have a drawing function </p>
  
  <pre><code>void MyOnPaint(HDC hdc)
  {
      Graphics graphics(hdc);
      Pen pen(Color(255, 0, 0, 255));
      Pen pen2(Color(255, 25*col, 0, 255));
  
      for (int i = 1; i &lt; 100; i++)
          graphics.DrawLine(&amp;pen2, data[i - 1].X, data[i - 1].Y, data[i].X, data[i].Y);
  
  
      graphics.DrawRectangle(&amp;pen, 50 + value, 400, 10, 20);
  }
  </code></pre>
  
  <p>And i would like to display an integer (for example value) every time the method is called (the value of value keeps changeing so it it would be updating every time I call the method). </p>
  
  <p>I heard something about Graphics.DrawString but I don't know how to use it.</p>