<?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 Windows-Style (XP-Style) fuer meine Anwendung]]></title><description><![CDATA[<p>Hallo!</p>
<p>Meine Anwendung soll eigentlich aussehen wie eine typische Windows-XP Anwendung. Leider ist dies nicht der Fall (siehe Bild: <a href="http://www.bilder-hosting.de/show/7SCM5.html" rel="nofollow">http://www.bilder-hosting.de/show/7SCM5.html</a>). Ich mache folgendes um den typischen Windows look zu erhalten:</p>
<pre><code>#if defined _M_IX86
#pragma comment(linker,&quot;/manifestdependency:\&quot;type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\&quot;&quot;)
#elif defined _M_IA64
#pragma comment(linker,&quot;/manifestdependency:\&quot;type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\&quot;&quot;)
#elif defined _M_X64
#pragma comment(linker,&quot;/manifestdependency:\&quot;type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\&quot;&quot;)
#else
#pragma comment(linker,&quot;/manifestdependency:\&quot;type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\&quot;&quot;)
#endif

#pragma comment(lib, &quot;comctl32.lib&quot;)
</code></pre>
<p>und dann am direkt am Anfang:</p>
<pre><code>InitCommonControls();
</code></pre>
<p>Ich dachte das sollte reichen, so hatte ich es zumindestens gelesen. Daher meine Frage ob jemand weiss wie es richtig geht ...?</p>
<p>Danke fuer Hinweise oder eine gute Literaturquelle!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/227700/problem-mit-windows-style-xp-style-fuer-meine-anwendung</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 04:40:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/227700.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Nov 2008 22:52:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Windows-Style (XP-Style) fuer meine Anwendung on Tue, 18 Nov 2008 22:52:32 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Meine Anwendung soll eigentlich aussehen wie eine typische Windows-XP Anwendung. Leider ist dies nicht der Fall (siehe Bild: <a href="http://www.bilder-hosting.de/show/7SCM5.html" rel="nofollow">http://www.bilder-hosting.de/show/7SCM5.html</a>). Ich mache folgendes um den typischen Windows look zu erhalten:</p>
<pre><code>#if defined _M_IX86
#pragma comment(linker,&quot;/manifestdependency:\&quot;type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\&quot;&quot;)
#elif defined _M_IA64
#pragma comment(linker,&quot;/manifestdependency:\&quot;type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\&quot;&quot;)
#elif defined _M_X64
#pragma comment(linker,&quot;/manifestdependency:\&quot;type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\&quot;&quot;)
#else
#pragma comment(linker,&quot;/manifestdependency:\&quot;type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\&quot;&quot;)
#endif

#pragma comment(lib, &quot;comctl32.lib&quot;)
</code></pre>
<p>und dann am direkt am Anfang:</p>
<pre><code>InitCommonControls();
</code></pre>
<p>Ich dachte das sollte reichen, so hatte ich es zumindestens gelesen. Daher meine Frage ob jemand weiss wie es richtig geht ...?</p>
<p>Danke fuer Hinweise oder eine gute Literaturquelle!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1616856</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1616856</guid><dc:creator><![CDATA[imwaitingforsomething]]></dc:creator><pubDate>Tue, 18 Nov 2008 22:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Windows-Style (XP-Style) fuer meine Anwendung on Wed, 19 Nov 2008 08:09:20 GMT]]></title><description><![CDATA[<p>Was ist Dein Problem? Sowohl Checkboxen als auch Buttons werden korrekt dargestellt im XP-Stil...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1616941</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1616941</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 19 Nov 2008 08:09:20 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Windows-Style (XP-Style) fuer meine Anwendung on Thu, 20 Nov 2008 02:09:50 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<p>Was ist Dein Problem? Sowohl Checkboxen als auch Buttons werden korrekt dargestellt im XP-Stil...</p>
</blockquote>
<p>Wenn ich mein Windows-Taschenrechner aufmache und mir Buttons &amp; Co anschaue, dann sehen die anders aus. Vorallem: Der Text ist duenner.</p>
<p>Das der Text so dick ist, ist fuer mich Windowsuntypisch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1617448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1617448</guid><dc:creator><![CDATA[imwaitingforsomething]]></dc:creator><pubDate>Thu, 20 Nov 2008 02:09:50 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Windows-Style (XP-Style) fuer meine Anwendung on Thu, 20 Nov 2008 08:03:13 GMT]]></title><description><![CDATA[<p>imwaitingforsomething schrieb:</p>
<blockquote>
<p>Das der Text so dick ist, ist fuer mich Windowsuntypisch.</p>
</blockquote>
<p>Welchen Font hast Du denn verwendet?</p>
<p>Ich verwende für meine Dialoge in der *.rc Datei folgenden Eintrag:</p>
<pre><code class="language-cpp">FONT 8, &quot;MS Shell Dlg&quot;, 0, 0, 0x1
</code></pre>
<p>Siehe auch <a href="http://msdn.microsoft.com/en-us/library/aa366904(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa366904(VS.85).aspx</a></p>
<p>Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1617484</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1617484</guid><dc:creator><![CDATA[Mmacher]]></dc:creator><pubDate>Thu, 20 Nov 2008 08:03:13 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Windows-Style (XP-Style) fuer meine Anwendung on Thu, 20 Nov 2008 08:10:07 GMT]]></title><description><![CDATA[<p>Dann besorge Dir den richtigen Font. Ich vermute mal, Du hast die Buttons einfach mit Create angelegt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1617488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1617488</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 20 Nov 2008 08:10:07 GMT</pubDate></item></channel></rss>