title: Draw / print text with transparent background in c++ win32
body: <p>I am trying to draw/print a text, but i need a transparent background. I have been trying this:</p>
  
  <pre><code>    TextOut(hDC, 50, 50, "MY TEXT", lstrlen("MY TEXT"));
  </code></pre>
  
  <p>The problem is that this generates an white background.
  I have also tried with this:</p>
  
  <pre><code>    ExtTextOut(hDC, 50, 50, ETO_OPAQUE, TA_LEFT,  "MY TEXT", lstrlen("MY TEXT"), NULL);
  </code></pre>
  
  <p>ETO_OPAQUE - sets the background color on the text area to the current background color of the program. But if my background is dynamic and changes, this would not work, and that's why i need a transparent background.</p>
  
  <p>For more information on these 2 functions <a href="http://msdn.microsoft.com/en-us/library/dd144821(v=vs.85)" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd144821(v=vs.85)</a></p>
  
  <p>I know i could insert the text into an bitmap and use "TransparentBlt" to achieve the "same" effect, but... Anyone who knows another function to draw / print text with transparent background, or any ideas on how i could solve this so called problem?</p>
  
  <p>Thanks... =)</p>