<?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 Control - Font grösser machen]]></title><description><![CDATA[<p>hi, ich habe eine dialoganwendung, auf welcher nun einige buttons und static controls usw. sitzen.<br />
jetzt möchte ich als überschrift eine static control verwenden, welche aber eine grössere schriftart aufweist als die restlichen controls.<br />
kann mir diesbezüglich jemand tips / links geben. danke !</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/81003/static-control-font-grösser-machen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 15:25:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/81003.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Jul 2004 08:35:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Static Control - Font grösser machen on Tue, 27 Jul 2004 08:35:45 GMT]]></title><description><![CDATA[<p>hi, ich habe eine dialoganwendung, auf welcher nun einige buttons und static controls usw. sitzen.<br />
jetzt möchte ich als überschrift eine static control verwenden, welche aber eine grössere schriftart aufweist als die restlichen controls.<br />
kann mir diesbezüglich jemand tips / links geben. danke !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/569177</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/569177</guid><dc:creator><![CDATA[joe84]]></dc:creator><pubDate>Tue, 27 Jul 2004 08:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to Static Control - Font grösser machen on Tue, 27 Jul 2004 11:16:46 GMT]]></title><description><![CDATA[<p>* Font vom Static geben lassen (CFont * GetFont())<br />
* Font-Beschreibung (LOGFONT) des fonts geben lassen<br />
* in der LOGFONT-Struktur die Größe anpassen<br />
* Neuen Font auf Basis dieses Fonts erstellen<br />
* Font setzen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/569320</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/569320</guid><dc:creator><![CDATA[peterchen]]></dc:creator><pubDate>Tue, 27 Jul 2004 11:16:46 GMT</pubDate></item><item><title><![CDATA[Reply to Static Control - Font grösser machen on Tue, 27 Jul 2004 11:47:19 GMT]]></title><description><![CDATA[<p>Was peterchen sagen möchte ist folgendes : <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<pre><code>LOGFONT lf; 
  memset(&amp;lf, 0, sizeof(LOGFONT)); 
  strcpy(lf.lfFaceName, &quot;Arial&quot;); 
  lf.lfWeight = FW_HEAVY; 
  lf.lfUnderline = FALSE; 
  lf.lfHeight = 20; 

  font.CreateFontIndirect(&amp;lf); 

  GetDlgItem(IDC_STATIC_DEIN_STEURELEMENT)-&gt;SetFont(&amp;font);
</code></pre>
<p>Schreib das in die WM_INITDIALOG. Jetzt musst du nur noch in der Dlg.h ein Variable von CFont deklarieren (CFont font) !</p>
<p>Gruß<br />
:: NoName ::</p>
]]></description><link>https://www.c-plusplus.net/forum/post/569356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/569356</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Tue, 27 Jul 2004 11:47:19 GMT</pubDate></item><item><title><![CDATA[Reply to Static Control - Font grösser machen on Tue, 27 Jul 2004 16:35:48 GMT]]></title><description><![CDATA[<p>Hat den nachteil, das der Font immer Arial ist <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/569689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/569689</guid><dc:creator><![CDATA[peterchen]]></dc:creator><pubDate>Tue, 27 Jul 2004 16:35:48 GMT</pubDate></item><item><title><![CDATA[Reply to Static Control - Font grösser machen on Tue, 27 Jul 2004 16:43:53 GMT]]></title><description><![CDATA[<p>jo statt den logfont selber zu basteln kannst du auch einfach dir den des zu ändenden windows holen und diesen direkt modifizieren</p>
<pre><code class="language-cpp">LOGFONT new_logfont;
GetDlgItem(IDC_STATIC_INFORMATION)-&gt;GetFont()-&gt;GetLogFont(&amp;new_logfont);
new_logfont.lfHeight=24;
new_font.CreateFontIndirect(&amp;new_logfont);
GetDlgItem(IDC_STATIC_INFORMATION)-&gt;SetFont(&amp;new_font);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/569694</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/569694</guid><dc:creator><![CDATA[Windalf]]></dc:creator><pubDate>Tue, 27 Jul 2004 16:43:53 GMT</pubDate></item><item><title><![CDATA[Reply to Static Control - Font grösser machen on Wed, 28 Jul 2004 10:41:33 GMT]]></title><description><![CDATA[<p>danke für eure antworten.<br />
ich habe beide vorschläge versucht, und im oninitdialog eingebaut.<br />
Beide liefern dasselbe ergebnis:</p>
<p>der Text vom Static Steuerelement wird zwar fett dargestellt, aber die grösse ändert sich nicht, egal was ich angebe - die grösse bleibt immer gleich... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<pre><code class="language-cpp">BOOL CStatictestDlg::OnInitDialog()
{
    CDialog::OnInitDialog();
    LOGFONT lf; 
    CFont font;
    memset(&amp;lf, 0, sizeof(LOGFONT)); 
    strcpy(lf.lfFaceName, &quot;Arial&quot;); 
    lf.lfWeight = FW_HEAVY; 
    lf.lfUnderline = FALSE; 
    lf.lfHeight = 70; 
    font.CreateFontIndirect(&amp;lf); 
    GetDlgItem(IDC_STATIC_1)-&gt;SetFont(&amp;font); 
    return TRUE;  
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/570240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/570240</guid><dc:creator><![CDATA[joe84]]></dc:creator><pubDate>Wed, 28 Jul 2004 10:41:33 GMT</pubDate></item><item><title><![CDATA[Reply to Static Control - Font grösser machen on Wed, 28 Jul 2004 10:55:26 GMT]]></title><description><![CDATA[<p>du musst font als membervariable anlegen und nicht als wird wieder nach der funktion gekillt variable...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/570247</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/570247</guid><dc:creator><![CDATA[Windalf]]></dc:creator><pubDate>Wed, 28 Jul 2004 10:55:26 GMT</pubDate></item><item><title><![CDATA[Reply to Static Control - Font grösser machen on Wed, 28 Jul 2004 11:28:58 GMT]]></title><description><![CDATA[<p>hey, toll funz volles rohr !!!!</p>
<p>danke euch allen ganz herzlich ! <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/570274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/570274</guid><dc:creator><![CDATA[joe84]]></dc:creator><pubDate>Wed, 28 Jul 2004 11:28:58 GMT</pubDate></item></channel></rss>