<?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[C++ Buttonbreite an Schriftart anpassen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein problem. Ich möchte einen Button an die verwendete Systemschrift anpassen. d.h. wenn ein user eine andere Schriftart verwendet, soll die width des Button automatisch angepasst werden.</p>
<p>Weiß jemand wie das geht mit GDI Funktionen ( GetTextMetric ?? oder so )</p>
<p>Irgendwie komme ich da nicht weiter..</p>
<p>Danke</p>
<p>M</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/120647/c-buttonbreite-an-schriftart-anpassen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 11:39:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/120647.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Sep 2005 09:26:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ Buttonbreite an Schriftart anpassen on Thu, 15 Sep 2005 09:26:30 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein problem. Ich möchte einen Button an die verwendete Systemschrift anpassen. d.h. wenn ein user eine andere Schriftart verwendet, soll die width des Button automatisch angepasst werden.</p>
<p>Weiß jemand wie das geht mit GDI Funktionen ( GetTextMetric ?? oder so )</p>
<p>Irgendwie komme ich da nicht weiter..</p>
<p>Danke</p>
<p>M</p>
]]></description><link>https://www.c-plusplus.net/forum/post/872596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872596</guid><dc:creator><![CDATA[Fehma]]></dc:creator><pubDate>Thu, 15 Sep 2005 09:26:30 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Buttonbreite an Schriftart anpassen on Thu, 15 Sep 2005 10:08:08 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Also ja mit GetTextExtentPoint32 bekommst du die Länge eines Strings unter der momentan verwendeten Schriftart heraus in logical units.</p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8smq.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8smq.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/872641</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872641</guid><dc:creator><![CDATA[Zyklop]]></dc:creator><pubDate>Thu, 15 Sep 2005 10:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Buttonbreite an Schriftart anpassen on Thu, 15 Sep 2005 10:10:13 GMT]]></title><description><![CDATA[<p>Das ist gut... Danke und wie kann ich die Logical Units umrechnen ?? haben Die nicht was mit den MapMode zu tun ??</p>
<p>Marcus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/872645</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872645</guid><dc:creator><![CDATA[Fehma]]></dc:creator><pubDate>Thu, 15 Sep 2005 10:10:13 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Buttonbreite an Schriftart anpassen on Thu, 15 Sep 2005 13:41:44 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8smq.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8smq.asp</a></p>
<p>Mit GetTextExtentPoint32() ermittelt man die Größe eines Textes in der im Gerätekontext ausgewählten Schriftart in logischen Einheiten.</p>
<p>Normalerweise sind das Pixels, also man kann den Wert direkt verwenden.</p>
<p>siehe auch:<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8fp0.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8fp0.asp</a> CreateFont(),<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_9v3o.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_9v3o.asp</a> SelectObject() und<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_9v3o.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_9v3o.asp</a> DeleteObject().</p>
]]></description><link>https://www.c-plusplus.net/forum/post/872861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/872861</guid><dc:creator><![CDATA[Power Off]]></dc:creator><pubDate>Thu, 15 Sep 2005 13:41:44 GMT</pubDate></item></channel></rss>