<?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[Text in Textfeld vertikal zentrieren]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich habe ein CStatic-Elemenent in meinem Program zur Laufzeit angelegt und möchte den Text nun gerne vertikal zentrieren in meinem Textfeld. Welchen Stil muss ich noch hinzufügen? SS_CENTER zentriert den Text ja nur horizontal.</p>
<p>Mein Qellcode:</p>
<pre><code>frage-&gt;Create(text, WS_VISIBLE|WS_CHILD|SS_NOTIFY|WS_BORDER, rect, bogen, WM_USER+anzahl_steuerelemente);
</code></pre>
<p>Danke schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/202650/text-in-textfeld-vertikal-zentrieren</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 04:11:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/202650.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Jan 2008 08:39:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Text in Textfeld vertikal zentrieren on Mon, 14 Jan 2008 08:39:22 GMT]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich habe ein CStatic-Elemenent in meinem Program zur Laufzeit angelegt und möchte den Text nun gerne vertikal zentrieren in meinem Textfeld. Welchen Stil muss ich noch hinzufügen? SS_CENTER zentriert den Text ja nur horizontal.</p>
<p>Mein Qellcode:</p>
<pre><code>frage-&gt;Create(text, WS_VISIBLE|WS_CHILD|SS_NOTIFY|WS_BORDER, rect, bogen, WM_USER+anzahl_steuerelemente);
</code></pre>
<p>Danke schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1436211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1436211</guid><dc:creator><![CDATA[Lexaja]]></dc:creator><pubDate>Mon, 14 Jan 2008 08:39:22 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Textfeld vertikal zentrieren on Mon, 14 Jan 2008 09:18:19 GMT]]></title><description><![CDATA[<p>Solch ein Flag gibt es nicht.</p>
<p>Ich habe mir dafür extra eigene CStatic's gebaut, die das machen.<br />
Schwierig ist das nicht. IMHO gibt es auch unter <a href="http://www.codeguru.com" rel="nofollow">www.codeguru.com</a> eine entsprechende Klasse, die mir aber immer zu aufgemotzt war.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1436227</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1436227</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 14 Jan 2008 09:18:19 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Textfeld vertikal zentrieren on Mon, 14 Jan 2008 09:19:55 GMT]]></title><description><![CDATA[<p>Habe ich vergessen: Manchmal ist es einfacher das CStatic einfach selbst korrekt zu bewegen und so den Text vertikal zu zentrieren...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1436229</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1436229</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 14 Jan 2008 09:19:55 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Textfeld vertikal zentrieren on Mon, 14 Jan 2008 09:50:12 GMT]]></title><description><![CDATA[<p>Hallo Martin,<br />
vielen Dank. Ich denke, in meinem Fall ist es dann tatsächlich einfacher, das ganze CStatic an die richtige Position zu bewegen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1436243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1436243</guid><dc:creator><![CDATA[Lexaja]]></dc:creator><pubDate>Mon, 14 Jan 2008 09:50:12 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Textfeld vertikal zentrieren on Mon, 14 Jan 2008 20:00:37 GMT]]></title><description><![CDATA[<p>Hi @all</p>
<p>Aber im Resourceneditor kann man den Text des CStatic doch ach vertikal Zentrieren mit CenterImage/Bild Zentrieren was SS_CENTERIMAGE entspricht. Oder bin ich da jetzt auf dem Holzweg?</p>
<p>Gruß Matthias</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1436637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1436637</guid><dc:creator><![CDATA[CTecS]]></dc:creator><pubDate>Mon, 14 Jan 2008 20:00:37 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Textfeld vertikal zentrieren on Tue, 15 Jan 2008 07:09:35 GMT]]></title><description><![CDATA[<p>Stimmt! Guter Einwurf... ist mir in den Jahren entgangen!</p>
<p>Man lernt nicht aus. Danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1436749</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1436749</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 15 Jan 2008 07:09:35 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Textfeld vertikal zentrieren on Tue, 15 Jan 2008 08:26:58 GMT]]></title><description><![CDATA[<p>Hm, das funktioniert bei mir nicht. Ich hab jetzt einfach mal hinter WS_BORDER in meinem Create noch SS_CENTERIMAGE gesetzt. Mach ich etwas falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1436789</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1436789</guid><dc:creator><![CDATA[Lexaja]]></dc:creator><pubDate>Tue, 15 Jan 2008 08:26:58 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Textfeld vertikal zentrieren on Tue, 15 Jan 2008 08:58:46 GMT]]></title><description><![CDATA[<p>Geht bei mir... Wie machst Du es? Zeig mal den Code!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1436810</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1436810</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 15 Jan 2008 08:58:46 GMT</pubDate></item></channel></rss>