<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[frage zu WM_PAINT: TextOut]]></title><description><![CDATA[<p>wie kann ich bei WM_PAINT in der Funktion TextOut eine Textgröße/Textfarbe?</p>
<p>Ist dies möglich? Wenn nicht: gibt es eine ähnliche WM_PAINT funktion?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/144435/frage-zu-wm_paint-textout</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 17:46:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/144435.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Apr 2006 10:07:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to frage zu WM_PAINT: TextOut on Tue, 18 Apr 2006 10:07:40 GMT]]></title><description><![CDATA[<p>wie kann ich bei WM_PAINT in der Funktion TextOut eine Textgröße/Textfarbe?</p>
<p>Ist dies möglich? Wenn nicht: gibt es eine ähnliche WM_PAINT funktion?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1039643</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1039643</guid><dc:creator><![CDATA[fenstermaler]]></dc:creator><pubDate>Tue, 18 Apr 2006 10:07:40 GMT</pubDate></item><item><title><![CDATA[Reply to frage zu WM_PAINT: TextOut on Tue, 18 Apr 2006 10:16:01 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8bsi.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8bsi.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1039646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1039646</guid><dc:creator><![CDATA[DarthZiu]]></dc:creator><pubDate>Tue, 18 Apr 2006 10:16:01 GMT</pubDate></item><item><title><![CDATA[Reply to frage zu WM_PAINT: TextOut on Tue, 18 Apr 2006 22:01:31 GMT]]></title><description><![CDATA[<p>hi, hier n kleines Beispiel:</p>
<pre><code class="language-cpp">case WM_PAINT
    PAINTSTRUCT ps;
    LOGFONT     lf = {0};
    HFONT       hfText;
    // vordefinierte Systemschrift laden:
    GetObject(GetStockObject(DEFAULT_GUI_FONT), sizeof(LOGFONT), &amp;lf);
    // Schrift anpassen:
    lf.lfHeight = 18;
    lf.lfWeight = FW_BOLD;
    // Schrift erstellen:
    hfText = CreateFontIndirect(&amp;lf);
    BeginPaint(hWnd, &amp;ps);
    // Zeichenaktionen:
    SelectObject(ps.hdc, hfText);
    SetBkMode(ps.hdc, TRANSPARENT); // Hintergrundmodus: Transparent
    SetTextColor(ps.hdc, RGB(0,0,255)); // Farbe: Blau
    TextOut(ps.hdc, 20, 20, TEXT(&quot;ziemlich DICK und BLAU ^^&quot;), strlen(TEXT(&quot;ziemlich DICK und BLAU ^^&quot;)));
    // Kein GDI-Leak: hfText wieder freigeben:
    DeleteObject(SelectObject(ps.hdc, GetStockObject(SYSTEM_FONT)));
    EndPaint(hWnd, &amp;ps);
    break;
</code></pre>
<p>hab den Code nit getestet, er dürfte aber richtig sein, oder nur ein zwei tippfehler drinne sein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> ..hoffe ich konnte helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1040148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1040148</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 18 Apr 2006 22:01:31 GMT</pubDate></item></channel></rss>