<?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[schriftgröße]]></title><description><![CDATA[<p>hallo,<br />
ich habe mit der Toolbox meinem Dialog einen static text verpasst.<br />
leider soll das eine große dicke überschrift(programmname) sein.<br />
Wie kann ich diesen static text größer machen bzw. in einer anderen schriftart?<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/223874/schriftgröße</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 23:04:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/223874.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Oct 2008 06:51:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to schriftgröße on Thu, 02 Oct 2008 06:51:35 GMT]]></title><description><![CDATA[<p>hallo,<br />
ich habe mit der Toolbox meinem Dialog einen static text verpasst.<br />
leider soll das eine große dicke überschrift(programmname) sein.<br />
Wie kann ich diesen static text größer machen bzw. in einer anderen schriftart?<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1591852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1591852</guid><dc:creator><![CDATA[dialog5000]]></dc:creator><pubDate>Thu, 02 Oct 2008 06:51:35 GMT</pubDate></item><item><title><![CDATA[Reply to schriftgröße on Thu, 02 Oct 2008 06:57:57 GMT]]></title><description><![CDATA[<p>1. Neuen Font mit CreateFontIndirect anlegen.<br />
2. WM_SETFONT mit neuem Font Handle an das COntrol senden.<br />
3. Font erst zerstören, wenn das Control nicht mehr benötigt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1591860</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1591860</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 02 Oct 2008 06:57:57 GMT</pubDate></item><item><title><![CDATA[Reply to schriftgröße on Thu, 02 Oct 2008 07:07:55 GMT]]></title><description><![CDATA[<p>danke, bin schon so weit:</p>
<pre><code class="language-cpp">case WM_INITDIALOG:
		 lf.lfWeight = 100;
		 hfont = CreateFontIndirect(&amp;lf);
		 return TRUE;

	case WM_SETFONT:
		 return TRUE;
</code></pre>
<p>was muss ich jetzt hier bei WM_SETFONT machen?<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1591874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1591874</guid><dc:creator><![CDATA[dialog5000]]></dc:creator><pubDate>Thu, 02 Oct 2008 07:07:55 GMT</pubDate></item><item><title><![CDATA[Reply to schriftgröße on Thu, 02 Oct 2008 08:09:56 GMT]]></title><description><![CDATA[<p>Du mußt WM_SETFONT an das Control im Dialog senden.<br />
In Deinem Konstrukt wertest Du aber WM_SETFONT aus!</p>
<p>Hab Dir mal aus meinem Code zusammengeschnippelt, hoffe es ist so selbsterklärend?</p>
<pre><code class="language-cpp">LOGFONT struct_logfont;
static HFONT hfont_fett;  // &lt;- &quot;static&quot; ist hier wichtig!

switch ( message )
{
  case WM_INITDIALOG:
  //Dialog einrichten.
  ...
  ...
  //** Einen Font (fett) für die Controls in Dialogboxen erzeugen **
  hfont_fett = (HFONT)SendMessage( hwnd_dialog, WM_GETFONT, (WPARAM)0, (LPARAM)0 );  //Original-Font vom Dialog holen.
  GetObject( hfont_fett, sizeof( LOGFONT ), &amp;struct_logfont );
  struct_logfont.lfWeight = FW_SEMIBOLD;  //Font in fett ändern.
  hfont_fett = CreateFontIndirect( &amp;struct_logfont );
  if ( hfont_fett == NULL )
  {
    //Ein Fehler ist aufgetreten.
  }
  SendDlgItemMessage( hwnd_dialog, IDC_STATICTEXT_NR1, WM_SETFONT, (WPARAM)hfont_fett, (LPARAM)0 );
  SendDlgItemMessage( hwnd_dialog, IDC_STATICTEXT_NR2, WM_SETFONT, (WPARAM)hfont_fett, (LPARAM)0 );
  ...
  ...
  break;

  case WM_COMMAND:
  switch ( LOWORD( wParam ) )
  {
    case IDOK:      //Button &quot;OK&quot; wurde gedrückt.
    case IDCANCEL:  //Taste &quot;Esc&quot; wurde gedrückt.
    //Dialog beenden.
    EndDialog( hwnd_dialog, 0 );
    DeleteObject( hfont_fett );     //Den erzeugten Font wieder aus dem Speicher entfernen!
    ...
</code></pre>
<p>HTH,<br />
Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1591904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1591904</guid><dc:creator><![CDATA[Mmacher]]></dc:creator><pubDate>Thu, 02 Oct 2008 08:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to schriftgröße on Thu, 02 Oct 2008 08:28:34 GMT]]></title><description><![CDATA[<p>Besser ist es im WM_DESTROY solche Variablen aufzulösen und dann evtl. auch auf NULL/0 zu setzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1591918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1591918</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 02 Oct 2008 08:28:34 GMT</pubDate></item><item><title><![CDATA[Reply to schriftgröße on Thu, 02 Oct 2008 08:34:36 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/35992">@Martin</a>:<br />
Danke für den Hinweis.<br />
Stimmt, klingt logischer.</p>
<p>Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1591925</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1591925</guid><dc:creator><![CDATA[Mmacher]]></dc:creator><pubDate>Thu, 02 Oct 2008 08:34:36 GMT</pubDate></item><item><title><![CDATA[Reply to schriftgröße on Thu, 02 Oct 2008 10:06:17 GMT]]></title><description><![CDATA[<p>danke, ich will jedoch nur einen einzigen static text in der font setzten und nicht alle im programm!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1591992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1591992</guid><dc:creator><![CDATA[dialog5000]]></dc:creator><pubDate>Thu, 02 Oct 2008 10:06:17 GMT</pubDate></item><item><title><![CDATA[Reply to schriftgröße on Thu, 02 Oct 2008 10:18:37 GMT]]></title><description><![CDATA[<p>sorry, das war ein dummes kommentar.<br />
vielen dank es geht jetzt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592000</guid><dc:creator><![CDATA[dialog5000]]></dc:creator><pubDate>Thu, 02 Oct 2008 10:18:37 GMT</pubDate></item></channel></rss>