<?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[Static Text Schriftgröße ändern]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es die Möglichkeit die Schriftgröße eines &quot;Static Text&quot; zu ändern? Wenn ja kann mir jemand einen Beispiel zeigen. Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/190378/static-text-schriftgröße-ändern</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 17:01:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/190378.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Aug 2007 06:55:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Static Text Schriftgröße ändern on Wed, 22 Aug 2007 06:55:16 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es die Möglichkeit die Schriftgröße eines &quot;Static Text&quot; zu ändern? Wenn ja kann mir jemand einen Beispiel zeigen. Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1349494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1349494</guid><dc:creator><![CDATA[Ugene]]></dc:creator><pubDate>Wed, 22 Aug 2007 06:55:16 GMT</pubDate></item><item><title><![CDATA[Reply to Static Text Schriftgröße ändern on Wed, 22 Aug 2007 09:35:06 GMT]]></title><description><![CDATA[<p>Du erstellst ein Font-Objekt ( siehe CFont ) und weist dieses dem Control mit SetFont zu z.B. in OnInitDialog. Das Font-Objekt muß aber solange existieren wie das Control selbst und muß danach wieder zerstört werden ( siehe WM_SETFONT ).</p>
<p>Bsp.:</p>
<pre><code class="language-cpp">BOOL CMyDialog::OnInitDialog()
{
   CDialog::OnInitDialog();

   // m_fontLarge in CMyDialog Klasse deklarieren. Kann auch für mehrere Controls verwendet werden
   // Nicht vergessen, das m_fontLarge.Objekt mit DeleteObject() z.b im Destruktor wieder zu löschen.
   VERIFY( m_fontLarge.CreateFont( 26, 0, 0, 0, ... , _T(&quot;Tahoma&quot;) ) );

   GetDlgItem( IDC_STATICTEXTCTRL )-&gt;SetFont( &amp;m_fontLarge );

   // ...
}
</code></pre>
<p>Gruß<br />
tvdog</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1349642</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1349642</guid><dc:creator><![CDATA[tvdog]]></dc:creator><pubDate>Wed, 22 Aug 2007 09:35:06 GMT</pubDate></item><item><title><![CDATA[Reply to Static Text Schriftgröße ändern on Wed, 22 Aug 2007 09:49:48 GMT]]></title><description><![CDATA[<p>Danke. Es hat funktioniert. Es hat mich nur etwas verwirrt. Weil man für staticText keine memvar erstellen kann, wie für EditBox..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1349656</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1349656</guid><dc:creator><![CDATA[Ugene]]></dc:creator><pubDate>Wed, 22 Aug 2007 09:49:48 GMT</pubDate></item><item><title><![CDATA[Reply to Static Text Schriftgröße ändern on Wed, 22 Aug 2007 10:00:56 GMT]]></title><description><![CDATA[<p>Ugene schrieb:</p>
<blockquote>
<p>Danke. Es hat funktioniert. Es hat mich nur etwas verwirrt. Weil man für staticText keine memvar erstellen kann, wie für EditBox..</p>
</blockquote>
<p>Dann mach einen Rechtsklick auf das Static und benenne das IDC_Static in was anderes um. Für Steuerelemente mit der ID &quot;IDC_Static&quot; können keine Membervariablen vergeben werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1349663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1349663</guid><dc:creator><![CDATA[Chris++ 0]]></dc:creator><pubDate>Wed, 22 Aug 2007 10:00:56 GMT</pubDate></item></channel></rss>