<?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[Statictext FETT machen]]></title><description><![CDATA[<p>Hi - ich schonwieder <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 />
mich würde interessieren wie ich einen text den ich in den ressourcen<br />
erstellt habe, fett machen kann.<br />
ich hab mich schon ein wenig informiert und dabei bin ich auf:<br />
'createfont' gestoßen, aber iwie steh ich da aufm schlauch.</p>
<p>kann mir bitte jmd weiterhelfen <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="🙂"
    /> danke!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162557/statictext-fett-machen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 21:02:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162557.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Oct 2006 18:41:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 18:41:47 GMT]]></title><description><![CDATA[<p>Hi - ich schonwieder <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 />
mich würde interessieren wie ich einen text den ich in den ressourcen<br />
erstellt habe, fett machen kann.<br />
ich hab mich schon ein wenig informiert und dabei bin ich auf:<br />
'createfont' gestoßen, aber iwie steh ich da aufm schlauch.</p>
<p>kann mir bitte jmd weiterhelfen <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="🙂"
    /> danke!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157894</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157894</guid><dc:creator><![CDATA[Phenex]]></dc:creator><pubDate>Thu, 19 Oct 2006 18:41:47 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 19:05:39 GMT]]></title><description><![CDATA[<p>Hi, Du brauchst:<br />
CreateFont oder CreateFontIndirect mit LOGFONT<br />
und<br />
SendMessage mit WM_SETFONT <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/1157904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157904</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 19 Oct 2006 19:05:39 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 19:15:42 GMT]]></title><description><![CDATA[<p>ich möchte aber nur den text fett machen, ansonsten überhaupt nichts.<br />
ich hab aber keine ahnung was die standarteinstellungen sind <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="🙂"
    /><br />
und wenn ich etwas ändere, dann muss ich doch alles ändern oder?<br />
also gibt es eine möglichkeit NUR fett einzustellen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157907</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157907</guid><dc:creator><![CDATA[Phenex]]></dc:creator><pubDate>Thu, 19 Oct 2006 19:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 19:19:08 GMT]]></title><description><![CDATA[<p>Phenex schrieb:</p>
<blockquote>
<p>also gibt es eine möglichkeit NUR fett einzustellen?</p>
</blockquote>
<p>Nein, aber du kannst dir die aktuelle Schrift holen (mit WM_GETFONT) und die dann ändern (in fett).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157910</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157910</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 19 Oct 2006 19:19:08 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 19:22:15 GMT]]></title><description><![CDATA[<p>oh mein gott!! leicht umständlich <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="😉"
    /><br />
naja typisch winapi^^... naja ich schau mal ob ich das hinkrieg - danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157913</guid><dc:creator><![CDATA[Phenex]]></dc:creator><pubDate>Thu, 19 Oct 2006 19:22:15 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 19:22:57 GMT]]></title><description><![CDATA[<p>Phenex schrieb:</p>
<blockquote>
<p>oh mein gott!! leicht umständlich <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="😉"
    /><br />
naja typisch winapi^^... naja ich schau mal ob ich das hinkrieg - danke</p>
</blockquote>
<p>Tja so ist das...aber schreib dir doch einfach ne Funktion <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/1157915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157915</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 19 Oct 2006 19:22:57 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 19:29:05 GMT]]></title><description><![CDATA[<p>&lt;&lt; winapi anfänger <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="🙂"
    /> mal schaun ob das was wird<br />
mit WM_GETFONT krieg ich ja nur das handle... und dann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157920</guid><dc:creator><![CDATA[Phenex]]></dc:creator><pubDate>Thu, 19 Oct 2006 19:29:05 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 20:06:12 GMT]]></title><description><![CDATA[<p>könnte sowas funktioniere:<br />
HFONT CreateFont(, , , , FW_SEMIBOLD, , , , , , , , ,); ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157946</guid><dc:creator><![CDATA[Phenex]]></dc:creator><pubDate>Thu, 19 Oct 2006 20:06:12 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 20:27:27 GMT]]></title><description><![CDATA[<p>nein, da fehlt doch alles, wasn das für ne Frage <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> ?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157954</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157954</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 19 Oct 2006 20:27:27 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 20:59:13 GMT]]></title><description><![CDATA[<p>na ich meine das vllt nur der eine stil überschrieben wird <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 />
ich kriege ja nur das handle bei getfont, was bringt mir das denn?<br />
sry bitte wenn ich so dumm frage <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/1157965</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157965</guid><dc:creator><![CDATA[Phenex]]></dc:creator><pubDate>Thu, 19 Oct 2006 20:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Thu, 19 Oct 2006 21:32:24 GMT]]></title><description><![CDATA[<p>Phenex schrieb:</p>
<blockquote>
<p>na ich meine das vllt nur der eine stil überschrieben wird <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 />
ich kriege ja nur das handle bei getfont, was bringt mir das denn?<br />
sry bitte wenn ich so dumm frage <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>
</blockquote>
<p>Also, so musst du das machen <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>
<pre><code class="language-cpp">LOGFONT lfPrevData;
// Schrift ermitteln:
HFONT hfPrevFont = reinterpret_cast&lt;HFONT&gt;(SendMessage(hWndStatic, WM_GETFONT, 0, 0L));
// Objektinformationen abrufen:
GetObject(hfPrevFont, sizeof(LOGFONT), &amp;lfPrevData);
// Hier kannst du lfPrevData anpassen, also (ums FETT zu machen):
lfPrevData.lfWieght = FW_BOLD;
// Danach die neue Schrift setzen
HFONT hfNewFont = CreateFontIndirect(&amp;lfPrevData);
SendMessage(hWndStatic, WM_SETFONT, 0, reinterpret_cast&lt;LPARAM&gt;(hfNewFont));
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> Ich hab das Clean-Up aber jetzt nicht dabei, musst dann unter WM_CREATE anpassen die HFONT-Variablen<br />
als static deklarieren und unter WM_DESTROY wieder freigeben (DeleteObject).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157981</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157981</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 19 Oct 2006 21:32:24 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Fri, 20 Oct 2006 15:58:10 GMT]]></title><description><![CDATA[<p>hi, vielen dank für die vorlage aber es verändert sich nichts,<br />
ausser das die schrift wieder zum standart wird</p>
<p>in den ressourcen habe ich mein schrift so definiert:</p>
<pre><code>FONT 7, &quot;MS SANS SERIF&quot;
</code></pre>
<p>wenn ich jeztz deinen code benutze hab ich wieder die standart schriftart<br />
welche aber selbst wenn ich weight ändere nicht anders wird.<br />
irgendeine idee an was das liegen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1158453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1158453</guid><dc:creator><![CDATA[Phenex]]></dc:creator><pubDate>Fri, 20 Oct 2006 15:58:10 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Sat, 21 Oct 2006 10:10:01 GMT]]></title><description><![CDATA[<p>[Doppel-Post, wg. Serverabsturz]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1158588</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1158588</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sat, 21 Oct 2006 10:10:01 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Sat, 21 Oct 2006 10:10:32 GMT]]></title><description><![CDATA[<p>Hast du den Handle static deklariert ?</p>
<p>EDIT:<br />
Mist hab mir den Return-Wert von WM_GETFONT nicht angeguckt:</p>
<p>MSDN zu WM_GETFONT schrieb:</p>
<blockquote>
<p>The return value is a handle to the font used by the control, or NULL if the control is using the system font.</p>
</blockquote>
<p>Also mach einfach:</p>
<pre><code class="language-cpp">LOGFONT lfPrevData;
// Schrift ermitteln:
HFONT hfPrevFont = reinterpret_cast&lt;HFONT&gt;(SendMessage(hWndStatic, WM_GETFONT, 0, 0L));
// Objektinformationen abrufen:
if(hfPrevFont == NULL)
   GetObject(GetStockObject(DEFAULT_GUI_FONT), sizeof(LOGFONT), &amp;lfPrevData);
else
   GetObject(hfPrevFont, sizeof(LOGFONT), &amp;lfPrevData);
// Hier kannst du lfPrevData anpassen, also (ums FETT zu machen):
lfPrevData.lfWieght = FW_BOLD;
// Danach die neue Schrift setzen
HFONT hfNewFont = CreateFontIndirect(&amp;lfPrevData);
SendMessage(hWndStatic, WM_SETFONT, 0, reinterpret_cast&lt;LPARAM&gt;(hfNewFont));
</code></pre>
<p>PS: Damit ist es auch allgemein gültig und du kannst das inne Funktion setzen <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/1158591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1158591</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sat, 21 Oct 2006 10:10:32 GMT</pubDate></item><item><title><![CDATA[Reply to Statictext FETT machen on Sat, 21 Oct 2006 12:20:33 GMT]]></title><description><![CDATA[<p>kann mir vorstellen das is langsam nerve <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 />
aber es will immer noch nicht funktionieren....</p>
<p>die schrift bleibt immer die selbe, egal was ich übergebe <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<pre><code class="language-cpp">void setfontweight(HWND _handle, int _id, int _weight)
{
	HWND idhandle = GetDlgItem(_handle, _id);
	LOGFONT lfPrevData;

	// Schrift ermitteln:
	static HFONT hfPrevFont = reinterpret_cast&lt;HFONT&gt;(SendMessage(idhandle, WM_GETFONT, 0, 0L));

	// Objektinformationen abrufen:
	if(hfPrevFont == NULL)
	{
	   GetObject(GetStockObject(DEFAULT_GUI_FONT), sizeof(LOGFONT), &amp;lfPrevData);
	}
	else
	{
		GetObject(hfPrevFont, sizeof(LOGFONT), &amp;lfPrevData);
	}

	// Hier kannst du lfPrevData anpassen, also (ums FETT zu machen):
	lfPrevData.lfWeight = _weight;

	// Danach die neue Schrift setzen
	static HFONT hfNewFont = CreateFontIndirect(&amp;lfPrevData);
	SendMessage(idhandle, WM_SETFONT, 0, reinterpret_cast&lt;LPARAM&gt;(hfNewFont));
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1158669</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1158669</guid><dc:creator><![CDATA[Phenex]]></dc:creator><pubDate>Sat, 21 Oct 2006 12:20:33 GMT</pubDate></item></channel></rss>