<?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[Problem mit WM_SETFONT]]></title><description><![CDATA[<p>Wenn ich die message SendMessage(hWnd, WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),0); im WM_CREATE reinschreibe werden alle Buttons mit einer dicken Schriftart (also nicht DEFAULT_GUI_FONT) angezeigt. Wenn ich statt hWnd den speziellen Button hinschreibe den ich verändern will funktioniert es. Warum funktioniert es nicht mit hWnd?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/88852/problem-mit-wm_setfont</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 17:01:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/88852.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Oct 2004 16:38:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Wed, 13 Oct 2004 16:39:13 GMT]]></title><description><![CDATA[<p>Wenn ich die message SendMessage(hWnd, WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),0); im WM_CREATE reinschreibe werden alle Buttons mit einer dicken Schriftart (also nicht DEFAULT_GUI_FONT) angezeigt. Wenn ich statt hWnd den speziellen Button hinschreibe den ich verändern will funktioniert es. Warum funktioniert es nicht mit hWnd?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628027</guid><dc:creator><![CDATA[jkarts]]></dc:creator><pubDate>Wed, 13 Oct 2004 16:39:13 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Wed, 13 Oct 2004 16:42:37 GMT]]></title><description><![CDATA[<p>Weil hWnd kein Handle für alle Fenster is, sondern für das zu dem die WindowProc gehört <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=";D"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/628031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628031</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Wed, 13 Oct 2004 16:42:37 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Wed, 13 Oct 2004 16:44:42 GMT]]></title><description><![CDATA[<p>Weil das immer nur für das entsprechende Control (Child-Window) gilt <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="😉"
    /><br />
Du kommst also nicht darum herum, das für alle Fenster aufzurufen, die du mit der dünnen Schrift haben willst <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/628035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628035</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 13 Oct 2004 16:44:42 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Wed, 13 Oct 2004 17:36:39 GMT]]></title><description><![CDATA[<p>Gibt es nicht eine Möglichkeit den Font für das ganze Fenster zu verändern? Bei Buttons und Edit Feldern ist es mit sendmessage kein problem den Font zu ändern, aber bei textout geht es so nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628079</guid><dc:creator><![CDATA[jkarts]]></dc:creator><pubDate>Wed, 13 Oct 2004 17:36:39 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Wed, 13 Oct 2004 17:48:28 GMT]]></title><description><![CDATA[<p>Da brauchst du dann SelectObject <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/628096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628096</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 13 Oct 2004 17:48:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Wed, 13 Oct 2004 17:59:00 GMT]]></title><description><![CDATA[<p>yo danke, kannst du mir die gesammte syntax nennen? Bin neu in der winapi programmierung</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628108</guid><dc:creator><![CDATA[jkarts]]></dc:creator><pubDate>Wed, 13 Oct 2004 17:59:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Wed, 13 Oct 2004 18:02:19 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">SelectObject(hDC,GetStockObject(DEFAULT_GUI_FONT));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/628111</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628111</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 13 Oct 2004 18:02:19 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Wed, 13 Oct 2004 18:47:27 GMT]]></title><description><![CDATA[<p>ok mit select object habe ich jetzt textout auf den standard font gesetzt, wenn ich aber die buttons verändern möchte musste ich bis jetzt alle button einzeln mit sendmessage und WM_SETFONT auf den standard font setzen. Gibt es nicht die Möglichkeit mit SendMessage(hWnd, WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),0); alle buttons auf den standard zu setzen? Bei mir funktioniert es nämlich so nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628155</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628155</guid><dc:creator><![CDATA[jkarts]]></dc:creator><pubDate>Wed, 13 Oct 2004 18:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Wed, 13 Oct 2004 19:42:02 GMT]]></title><description><![CDATA[<p>Nein, wie bereits gesagt, musst du das für jedes Fenster einzeln machen. Du kannst aber mit EnumChildWindows alle Childs durchgehen und in der Callback den Font setzen <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/628210</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628210</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 13 Oct 2004 19:42:02 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Thu, 14 Oct 2004 19:05:22 GMT]]></title><description><![CDATA[<p>kannst du mir bitte die syntax nennen, ich habe schon mehrere sachen probiert aber nicht geschafft den font ohne sendmessage zu ändern</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628912</guid><dc:creator><![CDATA[jkarts]]></dc:creator><pubDate>Thu, 14 Oct 2004 19:05:22 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Fri, 15 Oct 2004 16:22:11 GMT]]></title><description><![CDATA[<p>sry 4 doppelpost</p>
<p>ich hab jetzt einen quellcode gefunden womit ich den font des hauptfensters (hWnd) ändern kann.</p>
<p>BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam)<br />
{<br />
SendMessage(hwnd, WM_SETFONT, (WPARAM)GetStockObject(DEFAULT_GUI_FONT), 0);<br />
return TRUE;<br />
}</p>
<p>EnumChildWindows(hWnd, EnumChildProc, NULL);</p>
<p>Wenn ich jetzt aber versuche den Font eines dialog Fensters zu ändern (hDlg) geht es nicht mehr, der compiler zeigt mir aber keine fehlermeldung an</p>
<p>EnumChildWindows(hDlg, EnumChildProc, NULL);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629623</guid><dc:creator><![CDATA[jkarts]]></dc:creator><pubDate>Fri, 15 Oct 2004 16:22:11 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Fri, 15 Oct 2004 19:48:09 GMT]]></title><description><![CDATA[<p>Der zeigt auch keine fehler, den von der syntax ist alles richtig, aber die Inhalte eines Dialogs sind die Enkelkinder deines hauptfensters, wenn du verstehst was ich meine. (Parent-&gt;Child-&gt;Child)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629755</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629755</guid><dc:creator><![CDATA[MiC++ha]]></dc:creator><pubDate>Fri, 15 Oct 2004 19:48:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Fri, 15 Oct 2004 21:11:21 GMT]]></title><description><![CDATA[<p>Wenn das Hauptfenster der parent ist, ist ein weiteres fenster also das &quot;enkelkind&quot; des hauptfensters, und was ist das &quot;child&quot; daszwischen?<br />
Kann ich denn so den font des childfensters ändern?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629809</guid><dc:creator><![CDATA[jkarts]]></dc:creator><pubDate>Fri, 15 Oct 2004 21:11:21 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit WM_SETFONT on Fri, 15 Oct 2004 21:18:39 GMT]]></title><description><![CDATA[<p>du mußt praktisch eine ebene tiefer gehen, mit dem Handle des Childs, dessen Childs finden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/629814</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/629814</guid><dc:creator><![CDATA[MiC++ha]]></dc:creator><pubDate>Fri, 15 Oct 2004 21:18:39 GMT</pubDate></item></channel></rss>