Display Texts in a Window

  1. MFC provides a function TextOut() to display texts. The syntax is: TextOut(x, y, str).
  2. Draw a cosine function and annotate the X-axis, Y-axis, and the origin as below.
    ex-textout.png