title: how to use DrawText() to write text in a given window whose handle is known?
body: <p>I want to know how to write text on a particular window starting at a given location in the window using the Windows API.</p>
  
  <p>For example if the coordinates within the window where the text is to be written are (x,y) = (40,10) then what do I need to do to write a line of text to a particular window at that location in the window?</p>