<?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 zentriert anhand RECT und textgröße]]></title><description><![CDATA[<p>Hi@All.</p>
<p>wie der thread schon sagt, ich habe die volgenden variablen:</p>
<pre><code class="language-cpp">HDC dc;      // Das dc wo gezeichnet werden soll
RECT rect;   // Das Rechteck, anhand der Text ausgerichtet wird.
int size;    // Die Textgröße.
</code></pre>
<p>So, das Quadrat ist der Platz, in dem die Schrift zentriert werden soll.<br />
die schrift soll aber nur so groß sein, wie ich es mit size definiere.</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188557/text-zentriert-anhand-rect-und-textgröße</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 14:39:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188557.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Aug 2007 17:25:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Wed, 01 Aug 2007 17:25:34 GMT]]></title><description><![CDATA[<p>Hi@All.</p>
<p>wie der thread schon sagt, ich habe die volgenden variablen:</p>
<pre><code class="language-cpp">HDC dc;      // Das dc wo gezeichnet werden soll
RECT rect;   // Das Rechteck, anhand der Text ausgerichtet wird.
int size;    // Die Textgröße.
</code></pre>
<p>So, das Quadrat ist der Platz, in dem die Schrift zentriert werden soll.<br />
die schrift soll aber nur so groß sein, wie ich es mit size definiere.</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336736</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Wed, 01 Aug 2007 17:25:34 GMT</pubDate></item><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Wed, 01 Aug 2007 18:10:56 GMT]]></title><description><![CDATA[<p>Wär das nich was für DrawText() oder DrawTextEx() oder so?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336770</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Wed, 01 Aug 2007 18:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Wed, 01 Aug 2007 19:02:51 GMT]]></title><description><![CDATA[<p>jo davon hab ich auch schon ma was gehört.<br />
aber könntest du mir bitte ein Beispiel geben mit den variablen oben?<br />
thx thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336796</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336796</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Wed, 01 Aug 2007 19:02:51 GMT</pubDate></item><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Wed, 01 Aug 2007 19:29:05 GMT]]></title><description><![CDATA[<p><a href="http://msdn2.microsoft.com/en-us/library/Aa911421.aspx" rel="nofollow">DrawText</a><br />
<a href="http://msdn2.microsoft.com/en-us/library/ms534007.aspx" rel="nofollow">DrawTextEx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336807</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336807</guid><dc:creator><![CDATA[Analog Bit]]></dc:creator><pubDate>Wed, 01 Aug 2007 19:29:05 GMT</pubDate></item><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Wed, 01 Aug 2007 20:15:47 GMT]]></title><description><![CDATA[<p>Bei der Extended-Function kann man ja ein Rectangle angeben.<br />
fragt sich aber, ob der Text darin Zentriert wird.<br />
thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336836</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336836</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Wed, 01 Aug 2007 20:15:47 GMT</pubDate></item><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Wed, 01 Aug 2007 20:46:15 GMT]]></title><description><![CDATA[<p>Bei DrawText kann man das auch.<br />
Sieh dir mal den 5. Parameter der Funktionen genauer an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336857</guid><dc:creator><![CDATA[Analog Bit]]></dc:creator><pubDate>Wed, 01 Aug 2007 20:46:15 GMT</pubDate></item><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Wed, 01 Aug 2007 21:24:37 GMT]]></title><description><![CDATA[<p>thx thx. *verwirr*<br />
aber wie kann ich Farbe und größe bestimmen?<br />
und der Hintergrund des textes ist immernoch weiß.<br />
thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336890</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336890</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Wed, 01 Aug 2007 21:24:37 GMT</pubDate></item><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Wed, 01 Aug 2007 22:36:47 GMT]]></title><description><![CDATA[<p><a href="http://msdn2.microsoft.com/en-us/library/ms534209.aspx" rel="nofollow">SetTextColor</a><br />
<a href="http://msdn2.microsoft.com/en-us/library/ms534214.aspx" rel="nofollow">CreateFont</a><br />
<a href="http://msdn2.microsoft.com/en-us/library/ms534009.aspx" rel="nofollow">CreateFontIndirect</a><br />
<a href="http://msdn2.microsoft.com/en-us/library/ms534035.aspx" rel="nofollow">CreateFontIndirectEx</a><br />
<a href="http://msdn2.microsoft.com/en-us/library/aa920825.aspx" rel="nofollow">SetBkColor</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336943</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336943</guid><dc:creator><![CDATA[Analog Bit]]></dc:creator><pubDate>Wed, 01 Aug 2007 22:36:47 GMT</pubDate></item><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Thu, 02 Aug 2007 08:43:04 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">HFONT font = CreateFont(0,0,0,0,0,0,0,0,ANSI_CHARSET,0,0,1,9,&quot;Arial&quot;);
</code></pre>
<p>thx. und wie kann ich die Font-größe bestimmen?<br />
thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1337097</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337097</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Thu, 02 Aug 2007 08:43:04 GMT</pubDate></item><item><title><![CDATA[Reply to Text zentriert anhand RECT und textgröße on Thu, 02 Aug 2007 11:32:01 GMT]]></title><description><![CDATA[<p>Das steht doch in der Doku. Eventuell solltest du diese auch mal lesen <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="🤡"
    /> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1337199</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337199</guid><dc:creator><![CDATA[Analog Bit]]></dc:creator><pubDate>Thu, 02 Aug 2007 11:32:01 GMT</pubDate></item></channel></rss>