<?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[Länge eines Textes in einem static Control herrausfinden]]></title><description><![CDATA[<p>Hallo,</p>
<p>Wie kann man die länge eines Textes in einem static Control herausfinden. (Hintergrund: ich möchte sobald der Text länger, als das static Control wird, den Rest des Textes abschneiden und durch ... ersetzen). Ich habe hier im Forum nur was darüber gefunden, wie das mit TextOut funktioniert.</p>
<p>Wie kann ich das machen?</p>
<p>Anmerkung: Ich setzte mit</p>
<pre><code class="language-cpp">SendMessage(hwnd, WM_SETFONT, (WPARAM)GetStockObject(DEFAULT_GUI_FONT), 0);
</code></pre>
<p>eine neue Schrift.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/123825/länge-eines-textes-in-einem-static-control-herrausfinden</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 08:16:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123825.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Oct 2005 15:13:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Länge eines Textes in einem static Control herrausfinden on Thu, 20 Oct 2005 15:13:41 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Wie kann man die länge eines Textes in einem static Control herausfinden. (Hintergrund: ich möchte sobald der Text länger, als das static Control wird, den Rest des Textes abschneiden und durch ... ersetzen). Ich habe hier im Forum nur was darüber gefunden, wie das mit TextOut funktioniert.</p>
<p>Wie kann ich das machen?</p>
<p>Anmerkung: Ich setzte mit</p>
<pre><code class="language-cpp">SendMessage(hwnd, WM_SETFONT, (WPARAM)GetStockObject(DEFAULT_GUI_FONT), 0);
</code></pre>
<p>eine neue Schrift.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/896914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896914</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Thu, 20 Oct 2005 15:13:41 GMT</pubDate></item><item><title><![CDATA[Reply to Länge eines Textes in einem static Control herrausfinden on Thu, 20 Oct 2005 17:28:54 GMT]]></title><description><![CDATA[<p>Weiß dem Static den Stil SS_ENDELIPSES zu oder wied er heißt, dann macht das Windows für dich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/897044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/897044</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Thu, 20 Oct 2005 17:28:54 GMT</pubDate></item><item><title><![CDATA[Reply to Länge eines Textes in einem static Control herrausfinden on Thu, 20 Oct 2005 20:36:13 GMT]]></title><description><![CDATA[<blockquote>
<p>SS_ENDELLIPSIS Microsoft Windows NT or later: If the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses. Compare with SS_PATHELLIPSIS and SS_WORDELLIPSIS</p>
</blockquote>
<p>Das Problem ist das Windows 98 nicht unterstützt wird, gibt es sonst keine Möglickeit die länge des Strings herauszufinden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/897215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/897215</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Thu, 20 Oct 2005 20:36:13 GMT</pubDate></item><item><title><![CDATA[Reply to Länge eines Textes in einem static Control herrausfinden on Thu, 20 Oct 2005 20:51:51 GMT]]></title><description><![CDATA[<p>Hm, vielleicht klappt es mit GetWindowTextLength?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/897229</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/897229</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 20 Oct 2005 20:51:51 GMT</pubDate></item></channel></rss>