<?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[XP-Style nicht im Hauptfenster?]]></title><description><![CDATA[<p>Hallo,<br />
ich bin mal eurem Link gefolgt und habe versucht meiner Anwendung mal den XP-Style aufzudrücken. Habe dafür auch InitCommonControlsEx verwendet, da das andere ja obsolete ist. Die Funktion gibt mir auch true zurück, compiliert alles durch, meckert nicht, aber mein Hauptfenster kriegt einfach keinen XP-Style.</p>
<pre><code>//resource.h - Headerdatei
#define IDR_MANIFEST  1
#define RT_MANIFEST  24
</code></pre>
<p>Hier sagt er mir auch die waring, dass RT_MANIFEST redefiniert wurde... aber keine Ahnung wo...</p>
<pre><code>//resource.rc
#include &quot;resource.h&quot;
#include &quot;winres.h&quot;
#include &quot;style.rc2&quot;
</code></pre>
<pre><code>//style.rc2
IDR_MANIFEST RT_MANIFEST MOVEABLE PURE &quot;setup.exe.manifest&quot;
</code></pre>
<pre><code>int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){

	INITCOMMONCONTROLSEX cls; 
	cls.dwSize = sizeof(INITCOMMONCONTROLSEX);
	cls.dwICC = ICC_USEREX_CLASSES|ICC_LISTVIEW_CLASSES;

	if(!InitCommonControlsEx(&amp;cls)){
		MessageBox(NULL, &quot;gg&quot;, &quot;Commandline Arguments - IBM Installation Wizard&quot;, MB_ICONEXCLAMATION | MB_OK);
	}
MyRegisterClass(hInstance, 0);

		//creating the window, but it is not to be forced, to be shown. If the window will be shown to user depends to the command-line of the setup.exe, in fact /s
		hWnd = CreateWindowEx(WS_EX_APPWINDOW,&quot;Einfach&quot;, &quot;IMiner - Installation Wizard&quot;, WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_BORDER | WS_TABSTOP, CW_USEDEFAULT, CW_USEDEFAULT, 374, 167, NULL, NULL, hInstance, NULL);
</code></pre>
<p>Irgendwo muss doch da der Wurm drin sein oder gilt der XP-Style wieder nur für per Resourcen erzeugte Dialoge?</p>
<p>Thx<br />
AkonF</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/136331/xp-style-nicht-im-hauptfenster</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 11:06:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/136331.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Feb 2006 10:45:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to XP-Style nicht im Hauptfenster? on Thu, 09 Feb 2006 10:45:37 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich bin mal eurem Link gefolgt und habe versucht meiner Anwendung mal den XP-Style aufzudrücken. Habe dafür auch InitCommonControlsEx verwendet, da das andere ja obsolete ist. Die Funktion gibt mir auch true zurück, compiliert alles durch, meckert nicht, aber mein Hauptfenster kriegt einfach keinen XP-Style.</p>
<pre><code>//resource.h - Headerdatei
#define IDR_MANIFEST  1
#define RT_MANIFEST  24
</code></pre>
<p>Hier sagt er mir auch die waring, dass RT_MANIFEST redefiniert wurde... aber keine Ahnung wo...</p>
<pre><code>//resource.rc
#include &quot;resource.h&quot;
#include &quot;winres.h&quot;
#include &quot;style.rc2&quot;
</code></pre>
<pre><code>//style.rc2
IDR_MANIFEST RT_MANIFEST MOVEABLE PURE &quot;setup.exe.manifest&quot;
</code></pre>
<pre><code>int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){

	INITCOMMONCONTROLSEX cls; 
	cls.dwSize = sizeof(INITCOMMONCONTROLSEX);
	cls.dwICC = ICC_USEREX_CLASSES|ICC_LISTVIEW_CLASSES;

	if(!InitCommonControlsEx(&amp;cls)){
		MessageBox(NULL, &quot;gg&quot;, &quot;Commandline Arguments - IBM Installation Wizard&quot;, MB_ICONEXCLAMATION | MB_OK);
	}
MyRegisterClass(hInstance, 0);

		//creating the window, but it is not to be forced, to be shown. If the window will be shown to user depends to the command-line of the setup.exe, in fact /s
		hWnd = CreateWindowEx(WS_EX_APPWINDOW,&quot;Einfach&quot;, &quot;IMiner - Installation Wizard&quot;, WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_BORDER | WS_TABSTOP, CW_USEDEFAULT, CW_USEDEFAULT, 374, 167, NULL, NULL, hInstance, NULL);
</code></pre>
<p>Irgendwo muss doch da der Wurm drin sein oder gilt der XP-Style wieder nur für per Resourcen erzeugte Dialoge?</p>
<p>Thx<br />
AkonF</p>
]]></description><link>https://www.c-plusplus.net/forum/post/989984</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/989984</guid><dc:creator><![CDATA[AkonF]]></dc:creator><pubDate>Thu, 09 Feb 2006 10:45:37 GMT</pubDate></item><item><title><![CDATA[Reply to XP-Style nicht im Hauptfenster? on Thu, 09 Feb 2006 20:12:35 GMT]]></title><description><![CDATA[<p>Man braucht in VS 2005 zumindest kein Manifest.<br />
Man kann einfach diese Anweisung am besten noch vor den Includes aufrufen:</p>
<pre><code class="language-cpp">#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;)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/990465</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990465</guid><dc:creator><![CDATA[qasdfgh]]></dc:creator><pubDate>Thu, 09 Feb 2006 20:12:35 GMT</pubDate></item><item><title><![CDATA[Reply to XP-Style nicht im Hauptfenster? on Fri, 10 Feb 2006 20:01:32 GMT]]></title><description><![CDATA[<p>qasdfgh schrieb:</p>
<blockquote>
<p>Man braucht in VS 2005 zumindest kein Manifest.<br />
Man kann einfach diese Anweisung am besten noch vor den Includes aufrufen:</p>
<pre><code class="language-cpp">#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;)
</code></pre>
</blockquote>
<p>Nur als ergänzung: Man braucht natürlich schon ein Manifest, aber mit dem pragma kann man es gleich sagen wie es aussehen soll... man muss aber das erzeugen eines Manifestes aktiviert haben (was auch per default so ist)...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/991176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/991176</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 10 Feb 2006 20:01:32 GMT</pubDate></item></channel></rss>