<?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 - Funktioniert nicht -.-]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich will endlich auch C++ in der Abteilung GUI lernen. Habe mich hier für WinAPI entschieden zumindest für den Anfang <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>jedoch gefällt mir der alte Style nicht. Habe hier im Forum nach XP style gesucht und habe gelesen das man nur in seinem Projekt folgende zeilen einfügen soll:</p>
<pre><code>#ifdef _UNICODE
#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
#endif
</code></pre>
<p>Um das ganze zu testen habe ich dann auf Debuggen geklickt und siehe da ein Fester ganz in weiß. so nun wollt ich im Menü schauen wie das Info Fenster ausschaut jedoch öffnet er das fenster nicht mehr -.-</p>
<p>folgenden Code habe ich benutzt: (Beim neuen Projekt der beispiel Code!)</p>
<pre><code class="language-cpp">// ManifestTest.cpp : Definiert den Einstiegspunkt für die Anwendung.
//

#include &quot;stdafx.h&quot;
#include &quot;ManifestTest.h&quot;

#ifdef _UNICODE
#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
#endif

#define MAX_LOADSTRING 100

// Globale Variablen:
HINSTANCE hInst;								// Aktuelle Instanz
TCHAR szTitle[MAX_LOADSTRING];					// Titelleistentext
TCHAR szWindowClass[MAX_LOADSTRING];			// Klassenname des Hauptfensters

// Vorwärtsdeklarationen der in diesem Codemodul enthaltenen Funktionen:
ATOM				MyRegisterClass(HINSTANCE hInstance);
BOOL				InitInstance(HINSTANCE, int);
LRESULT CALLBACK	WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK	About(HWND, UINT, WPARAM, LPARAM);

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

 	// TODO: Hier Code einfügen.
	MSG msg;
	HACCEL hAccelTable;

	// Globale Zeichenfolgen initialisieren
	LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
	LoadString(hInstance, IDC_MANIFESTTEST, szWindowClass, MAX_LOADSTRING);
	MyRegisterClass(hInstance);

	// Anwendungsinitialisierung ausführen:
	if (!InitInstance (hInstance, nCmdShow))
	{
		return FALSE;
	}

	hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MANIFESTTEST));

	// Hauptmeldungsschleife:
	while (GetMessage(&amp;msg, NULL, 0, 0))
	{
		if (!TranslateAccelerator(msg.hwnd, hAccelTable, &amp;msg))
		{
			TranslateMessage(&amp;msg);
			DispatchMessage(&amp;msg);
		}
	}

	return (int) msg.wParam;
}

//
//  FUNKTION: MyRegisterClass()
//
//  ZWECK: Registriert die Fensterklasse.
//
//  KOMMENTARE:
//
//    Sie müssen die Funktion verwenden,  wenn Sie möchten, dass der Code
//    mit Win32-Systemen kompatibel ist, bevor die RegisterClassEx-Funktion
//    zu Windows 95 hinzugefügt wurde. Der Aufruf der Funktion ist wichtig,
//    damit die kleinen Symbole, die mit der Anwendung verknüpft sind,
//    richtig formatiert werden.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
	WNDCLASSEX wcex;

	wcex.cbSize = sizeof(WNDCLASSEX);

	wcex.style			= CS_HREDRAW | CS_VREDRAW;
	wcex.lpfnWndProc	= WndProc;
	wcex.cbClsExtra		= 0;
	wcex.cbWndExtra		= 0;
	wcex.hInstance		= hInstance;
	wcex.hIcon			= LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MANIFESTTEST));
	wcex.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wcex.hbrBackground	= (HBRUSH)(COLOR_WINDOW+1);
	wcex.lpszMenuName	= MAKEINTRESOURCE(IDC_MANIFESTTEST);
	wcex.lpszClassName	= szWindowClass;
	wcex.hIconSm		= LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));

	return RegisterClassEx(&amp;wcex);
}

//
//   FUNKTION: InitInstance(HINSTANCE, int)
//
//   ZWECK: Speichert das Instanzenhandle und erstellt das Hauptfenster.
//
//   KOMMENTARE:
//
//        In dieser Funktion wird das Instanzenhandle in einer globalen Variablen gespeichert, und das
//        Hauptprogrammfenster wird erstellt und angezeigt.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
   HWND hWnd;

   hInst = hInstance; // Instanzenhandle in der globalen Variablen speichern

   hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
      CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);

   if (!hWnd)
   {
      return FALSE;
   }

   ShowWindow(hWnd, nCmdShow);
   UpdateWindow(hWnd);

   return TRUE;
}

//
//  FUNKTION: WndProc(HWND, UINT, WPARAM, LPARAM)
//
//  ZWECK:  Verarbeitet Meldungen vom Hauptfenster.
//
//  WM_COMMAND	- Verarbeiten des Anwendungsmenüs
//  WM_PAINT	- Zeichnen des Hauptfensters
//  WM_DESTROY	- Beenden-Meldung anzeigen und zurückgeben
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	int wmId, wmEvent;
	PAINTSTRUCT ps;
	HDC hdc;

	switch (message)
	{
	case WM_COMMAND:
		wmId    = LOWORD(wParam);
		wmEvent = HIWORD(wParam);
		// Menüauswahl bearbeiten:
		switch (wmId)
		{
		case IDM_\1:
			DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
			break;
		case IDM_EXIT:
			DestroyWindow(hWnd);
			break;
		default:
			return DefWindowProc(hWnd, message, wParam, lParam);
		}
		break;
	case WM_PAINT:
		hdc = BeginPaint(hWnd, &amp;ps);
		// TODO: Hier den Zeichnungscode hinzufügen.
		EndPaint(hWnd, &amp;ps);
		break;
	case WM_DESTROY:
		PostQuitMessage(0);
		break;
	default:
		return DefWindowProc(hWnd, message, wParam, lParam);
	}
	return 0;
}

// Meldungshandler für Infofeld.
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
	UNREFERENCED_PARAMETER(lParam);
	switch (message)
	{
	case WM_INITDIALOG:
		return (INT_PTR)TRUE;

	case WM_COMMAND:
		if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
		{
			EndDialog(hDlg, LOWORD(wParam));
			return (INT_PTR)TRUE;
		}
		break;
	}
	return (INT_PTR)FALSE;
}
</code></pre>
<p>Das komische ist ich bekomm keine Fehlermeldung absolut nichts!<br />
Dann hat mir mal ein Kumpel seine .exe Datei zugesendet, bei dem es klappt. Jedoch wenn ich seine komplierte Datei starte habe ich ebenfalls das Problem das ich keine Menü- aktionen anklicken kann ausser die Schaltfläche Beenden.</p>
<p>Fehlt bei mir irgend eine besondere Datei?<br />
Habe mir das SP2 schon geladen.<br />
Arbeite mit der Virtual C++ 2005 Express IDE!</p>
<p>Kann mir wer Helfen?</p>
<p>Gruß de Funjoy</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/186534/xp-style-funktioniert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 09:13:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/186534.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Jul 2007 22:16:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Mon, 09 Jul 2007 22:16:27 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich will endlich auch C++ in der Abteilung GUI lernen. Habe mich hier für WinAPI entschieden zumindest für den Anfang <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>jedoch gefällt mir der alte Style nicht. Habe hier im Forum nach XP style gesucht und habe gelesen das man nur in seinem Projekt folgende zeilen einfügen soll:</p>
<pre><code>#ifdef _UNICODE
#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
#endif
</code></pre>
<p>Um das ganze zu testen habe ich dann auf Debuggen geklickt und siehe da ein Fester ganz in weiß. so nun wollt ich im Menü schauen wie das Info Fenster ausschaut jedoch öffnet er das fenster nicht mehr -.-</p>
<p>folgenden Code habe ich benutzt: (Beim neuen Projekt der beispiel Code!)</p>
<pre><code class="language-cpp">// ManifestTest.cpp : Definiert den Einstiegspunkt für die Anwendung.
//

#include &quot;stdafx.h&quot;
#include &quot;ManifestTest.h&quot;

#ifdef _UNICODE
#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
#endif

#define MAX_LOADSTRING 100

// Globale Variablen:
HINSTANCE hInst;								// Aktuelle Instanz
TCHAR szTitle[MAX_LOADSTRING];					// Titelleistentext
TCHAR szWindowClass[MAX_LOADSTRING];			// Klassenname des Hauptfensters

// Vorwärtsdeklarationen der in diesem Codemodul enthaltenen Funktionen:
ATOM				MyRegisterClass(HINSTANCE hInstance);
BOOL				InitInstance(HINSTANCE, int);
LRESULT CALLBACK	WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK	About(HWND, UINT, WPARAM, LPARAM);

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

 	// TODO: Hier Code einfügen.
	MSG msg;
	HACCEL hAccelTable;

	// Globale Zeichenfolgen initialisieren
	LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
	LoadString(hInstance, IDC_MANIFESTTEST, szWindowClass, MAX_LOADSTRING);
	MyRegisterClass(hInstance);

	// Anwendungsinitialisierung ausführen:
	if (!InitInstance (hInstance, nCmdShow))
	{
		return FALSE;
	}

	hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MANIFESTTEST));

	// Hauptmeldungsschleife:
	while (GetMessage(&amp;msg, NULL, 0, 0))
	{
		if (!TranslateAccelerator(msg.hwnd, hAccelTable, &amp;msg))
		{
			TranslateMessage(&amp;msg);
			DispatchMessage(&amp;msg);
		}
	}

	return (int) msg.wParam;
}

//
//  FUNKTION: MyRegisterClass()
//
//  ZWECK: Registriert die Fensterklasse.
//
//  KOMMENTARE:
//
//    Sie müssen die Funktion verwenden,  wenn Sie möchten, dass der Code
//    mit Win32-Systemen kompatibel ist, bevor die RegisterClassEx-Funktion
//    zu Windows 95 hinzugefügt wurde. Der Aufruf der Funktion ist wichtig,
//    damit die kleinen Symbole, die mit der Anwendung verknüpft sind,
//    richtig formatiert werden.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
	WNDCLASSEX wcex;

	wcex.cbSize = sizeof(WNDCLASSEX);

	wcex.style			= CS_HREDRAW | CS_VREDRAW;
	wcex.lpfnWndProc	= WndProc;
	wcex.cbClsExtra		= 0;
	wcex.cbWndExtra		= 0;
	wcex.hInstance		= hInstance;
	wcex.hIcon			= LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MANIFESTTEST));
	wcex.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wcex.hbrBackground	= (HBRUSH)(COLOR_WINDOW+1);
	wcex.lpszMenuName	= MAKEINTRESOURCE(IDC_MANIFESTTEST);
	wcex.lpszClassName	= szWindowClass;
	wcex.hIconSm		= LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));

	return RegisterClassEx(&amp;wcex);
}

//
//   FUNKTION: InitInstance(HINSTANCE, int)
//
//   ZWECK: Speichert das Instanzenhandle und erstellt das Hauptfenster.
//
//   KOMMENTARE:
//
//        In dieser Funktion wird das Instanzenhandle in einer globalen Variablen gespeichert, und das
//        Hauptprogrammfenster wird erstellt und angezeigt.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
   HWND hWnd;

   hInst = hInstance; // Instanzenhandle in der globalen Variablen speichern

   hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
      CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);

   if (!hWnd)
   {
      return FALSE;
   }

   ShowWindow(hWnd, nCmdShow);
   UpdateWindow(hWnd);

   return TRUE;
}

//
//  FUNKTION: WndProc(HWND, UINT, WPARAM, LPARAM)
//
//  ZWECK:  Verarbeitet Meldungen vom Hauptfenster.
//
//  WM_COMMAND	- Verarbeiten des Anwendungsmenüs
//  WM_PAINT	- Zeichnen des Hauptfensters
//  WM_DESTROY	- Beenden-Meldung anzeigen und zurückgeben
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	int wmId, wmEvent;
	PAINTSTRUCT ps;
	HDC hdc;

	switch (message)
	{
	case WM_COMMAND:
		wmId    = LOWORD(wParam);
		wmEvent = HIWORD(wParam);
		// Menüauswahl bearbeiten:
		switch (wmId)
		{
		case IDM_\1:
			DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
			break;
		case IDM_EXIT:
			DestroyWindow(hWnd);
			break;
		default:
			return DefWindowProc(hWnd, message, wParam, lParam);
		}
		break;
	case WM_PAINT:
		hdc = BeginPaint(hWnd, &amp;ps);
		// TODO: Hier den Zeichnungscode hinzufügen.
		EndPaint(hWnd, &amp;ps);
		break;
	case WM_DESTROY:
		PostQuitMessage(0);
		break;
	default:
		return DefWindowProc(hWnd, message, wParam, lParam);
	}
	return 0;
}

// Meldungshandler für Infofeld.
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
	UNREFERENCED_PARAMETER(lParam);
	switch (message)
	{
	case WM_INITDIALOG:
		return (INT_PTR)TRUE;

	case WM_COMMAND:
		if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
		{
			EndDialog(hDlg, LOWORD(wParam));
			return (INT_PTR)TRUE;
		}
		break;
	}
	return (INT_PTR)FALSE;
}
</code></pre>
<p>Das komische ist ich bekomm keine Fehlermeldung absolut nichts!<br />
Dann hat mir mal ein Kumpel seine .exe Datei zugesendet, bei dem es klappt. Jedoch wenn ich seine komplierte Datei starte habe ich ebenfalls das Problem das ich keine Menü- aktionen anklicken kann ausser die Schaltfläche Beenden.</p>
<p>Fehlt bei mir irgend eine besondere Datei?<br />
Habe mir das SP2 schon geladen.<br />
Arbeite mit der Virtual C++ 2005 Express IDE!</p>
<p>Kann mir wer Helfen?</p>
<p>Gruß de Funjoy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1321874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1321874</guid><dc:creator><![CDATA[Funjoy]]></dc:creator><pubDate>Mon, 09 Jul 2007 22:16:27 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Tue, 10 Jul 2007 09:07:14 GMT]]></title><description><![CDATA[<p>Das ganze hat aber nichts mit dem Manifest zu tun, dass Du hier verwendest.</p>
<p>Ich sehe hier keinen Zusammenhang.</p>
<p>Hast Du an den Menüresourcen rumgespielt? Evtl. hast Du dem Menü eine andere ID gegeben!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1322073</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1322073</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 10 Jul 2007 09:07:14 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Tue, 10 Jul 2007 09:19:57 GMT]]></title><description><![CDATA[<p>vieleicht liegts ja daran bei mein kumpel hats geholfen</p>
<pre><code>[cpp]
#include &lt;commctrl.h&gt;
#pragma comment(lib,&quot;Comctl32.lib&quot;)
//...
InitCommonControls();
//..
[/cpp]
</code></pre>
<p>weils fehlt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1322089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1322089</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Tue, 10 Jul 2007 09:19:57 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 15 Jul 2007 02:41:16 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Sorry das ich erst jetzt antworte, ich war die Tage nicht daheim.</p>
<p>Ich fang noch mal von vorne an. Ich erstelle ein Win32 (Anwendung) Projekt (Leer). Zum Projekt füge ich eine C++ Datei namens MessageBox.cpp ein. Die Datei beinhaltet folgenden Code:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
				   PSTR szCmdLine, int iCmdShow)
{
	MessageBox (NULL, TEXT(&quot;Hello, WinAPI!&quot;), TEXT(&quot;HelloMsg&quot;),
		        MB_OK | MB_ICONQUESTION | MB_HELP);
	return 0;
}
</code></pre>
<p>Wie Ihr sicherlich schon erkennt, will ich nur einen Stinknormale Msg Box ausgeben. Wenn ich jetzt Debugge kommt die gewünschte msg Box jedoch im alten Windows look. Um jetzt zu versuchen den look in Win XP zu bekommen gehe ich wie folgt vor.</p>
<p>Ich erstelle im Projekt ordner eine XML Datei die ich einfach mal xpstyle.xml nenne. In der Datei steht folgendes:</p>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;

&lt;assembly xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot; manifestVersion=&quot;1.0&quot;&gt;
&lt;dependency&gt;
    &lt;dependentAssembly&gt;
        &lt;assemblyIdentity
            type=&quot;win32&quot;
            name=&quot;Microsoft.Windows.Common-Controls&quot;
            version=&quot;6.0.0.0&quot;
            processorArchitecture=&quot;X86&quot;
            publicKeyToken=&quot;6595b64144ccf1df&quot;
            language=&quot;*&quot;
        /&gt;
    &lt;/dependentAssembly&gt;
&lt;/dependency&gt;
&lt;/assembly&gt;
</code></pre>
<p>Nun gehe ich wieder in Visual Studio, und unter Projekt -&gt; Eigenschaften (ALT + F7) öffnet sich das Fenster für Projekteigenschaften. Hier wähle ich dann:<br />
<strong>Konfigurationseigenschaften -&gt; Manifesttool -&gt; Eingabe und Ausgabe -&gt; Zusätzliche Manifestdateien</strong> aus und füge dort meine xpstyle.xml Datei zu.</p>
<p>So das sollte ja eigentlich reichen, richtig? Visual Studio hat ja jetzt das die xpstyle.xml Datei als Manifest eingebettet.</p>
<p>Demnach geh ich jetzt einfach wieder auf Debuggen und hoffe das es Funktioniert.<br />
Visual Studio blinkt kurz auf und gibt mir keine msg Box aus aber auch keine Fehlermeldung.</p>
<p>Hier mal ein Auszug aus der Debug Ausgabe:</p>
<pre><code>&quot;MessageBox.exe&quot;: &quot;D:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\debug\MessageBox.exe&quot; geladen, Symbole wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\ntdll.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\kernel32.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\user32.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\gdi32.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll&quot; geladen, Symbole wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\msvcrt.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\imm32.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\advapi32.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\rpcrt4.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\uxtheme.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\MSCTF.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\version.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\version.dll&quot; entladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\MSCTFIME.IME&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\ole32.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\shlwapi.dll&quot; geladen, Exporte wurden geladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll&quot; entladen.
&quot;MessageBox.exe&quot;: &quot;D:\WINDOWS\system32\shlwapi.dll&quot; entladen.
Das Programm &quot;[292] MessageBox.exe: Systemeigen&quot; wurde mit Code 0 (0x0) beendet.
</code></pre>
<p>Da schein alles ok zu sein oder?</p>
<p>Hier noch der Inhalt der BuildLog.htm Datei:</p>
<blockquote>
<p>Buildprotokoll</p>
<p>Erstellen wurde gestartet: Projekt: &quot;MessageBox&quot;, Konfiguration: &quot;Debug|Win32&quot;</p>
<p>Befehlszeilen</p>
<p>Die temporäre Datei &quot;d:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\MessageBox\Debug\RSP00000840163936.rsp&quot; wird erstellt. Inhalt:<br />
[<br />
/out:&quot;.\debug\MessageBox.exe.embed.manifest&quot; /notify_update /manifest &quot;.\xpstyle.xml&quot;</p>
<p>&quot;.\debug\MessageBox.exe.intermediate.manifest&quot;<br />
]Erstellen der Befehlszeile &quot;mt.exe @&quot;d:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\MessageBox\Debug\RSP00000840163936.rsp&quot; /nologo&quot;Die temporäre Datei &quot;d:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\MessageBox\Debug\BAT00000940163936.bat&quot; wird erstellt. Inhalt:<br />
[<br />
<a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/9067">@echo</a>, die Manifestressource wurde zuletzt um %TIME% am %DATE% aktualisiert &gt; &quot;.\debug\mt.dep&quot;<br />
]Erstellen der Befehlszeile &quot;&quot;&quot;d:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\MessageBox\Debug\BAT00000940163936.bat&quot;&quot;&quot;Die temporäre Datei &quot;d:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\MessageBox\Debug\TMP00000A40163936.tmp&quot; wird erstellt. Inhalt:<br />
[<br />
1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID <em>/ 24 /</em> RT_MANIFEST */ &quot;.\\Debug\\MessageBox.exe.embed.manifest&quot;<br />
]Erstellen der Befehlszeile &quot;rc.exe /fo&quot;.\Debug\MessageBox.exe.embed.manifest.res&quot; &quot;d:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\MessageBox\Debug\TMP00000A40163936.tmp&quot;&quot;<br />
Die temporäre Datei &quot;d:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\MessageBox\Debug\RSP00000B40163936.rsp&quot; wird erstellt. Inhalt:<br />
[<br />
/OUT:&quot;D:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\Debug\MessageBox.exe&quot; /INCREMENTAL /MANIFEST /MANIFESTFILE:&quot;Debug\MessageBox.exe.intermediate.manifest&quot; /DEBUG /PDB:&quot;d:\dokumente und einstellungen\ise3u\eigene dateien\visual studio 2005\projects\messagebox\debug\MessageBox.pdb&quot; /SUBSYSTEM:WINDOWS /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib</p>
<p>&quot;.\debug\MessageBox.obj&quot;</p>
<p>&quot;.\Debug\MessageBox.exe.embed.manifest.res&quot;<br />
]Erstellen der Befehlszeile &quot;link.exe @&quot;d:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\MessageBox\Debug\RSP00000B40163936.rsp&quot; /NOLOGO /ERRORREPORT:PROMPT&quot;</p>
<p>Ausgabefenster</p>
<p>Das Manifest wird eingebettet...</p>
<p>Ergebnisse</p>
<p>Das Buildprotokoll wurde unter &quot;file://d:\Dokumente und Einstellungen\iSe3U\Eigene Dateien\Visual Studio 2005\Projects\MessageBox\MessageBox\Debug\BuildLog.htm&quot; gespeichert.<br />
MessageBox - 0 Fehler, 0 Warnung(en)</p>
</blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/7281">@Ascharan</a>: Ich habe auch das probiert, jedoch komme ich da auch nicht zum Erfolg. Habe vom Prinzip alle gängigen Tutorials wie man Xp-Style in sein Projekt einbindet durchgelesen, die es für WinAPI gibt.</p>
<p>Hoffe einer von euch weiß Rat, den ich bin nämlich mit mein Latein am Ende -.-</p>
<p>Hier noch zur Information, ich habe mir das SP2 runtergeladen.</p>
<p>Gruß Funjoy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1325626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1325626</guid><dc:creator><![CDATA[Funjoy]]></dc:creator><pubDate>Sun, 15 Jul 2007 02:41:16 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 15 Jul 2007 15:58:41 GMT]]></title><description><![CDATA[<p>Lies doch bitte die Beiträge!<br />
Du hst InitCommonControls vergessen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1325968</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1325968</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 15 Jul 2007 15:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 15 Jul 2007 18:45:12 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/35992">@Martin</a> Richter</p>
<p>Ich habe mal bei google nach <strong>InitCommonControls()</strong> gesucht. Ich hatte aber schon mal eine Anleitung mit <strong>InitCommonControls()</strong> probiert, jedoch funktionierte es nicht. Aber vielleicht habe ich ja was falsch gemacht, jedenfalls bin ich auf folgendes Tutorial gestoßen: <a href="http://www.codeproject.com/w2k/xptheme.asp" rel="nofollow">Add Windows XP Theme Style to your current projects</a>.</p>
<p>Dort kann man sich das Beispiel (Projektordner) runterladen, das habe ich gemacht und dann einfach in Visual Studio Debugt, jedoch bekomm ich eine Fehlermeldung die ich nicht nachvollziehen kann <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>1&gt;------ Erstellen gestartet: Projekt: Test, Konfiguration: Debug Win32 ------
1&gt;Verknüpfen...
1&gt;CVTRES : fatal error CVT1100: Doppelte Ressource. type:MANIFEST, name:1, language:0x0409.
1&gt;LINK : fatal error LNK1123: Fehler bei der Konvertierung in COFF: Datei ist ungültig oder beschädigt.
1&gt;Das Buildprotokoll wurde unter &quot;file://d:\Dokumente und Einstellungen\iSe3U\Desktop\XPTheme\Test\Debug\BuildLog.htm&quot; gespeichert.
1&gt;Test - 2 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
</code></pre>
<p>Er sagt das eine Doppelte Ressource Datei vorhanden sei jedoch seh ich nur eine <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Weiß hier einer bescheid? Achtung ich bin noch kein WinAPI freak, also idiotensichere Anleitungen zur Fehlerbehebung <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Hier falls es hilft noch die BuildLog.htm Datei:</p>
<blockquote>
<p>Buildprotokoll Erstellen wurde gestartet: Projekt: &quot;Test&quot;, Konfiguration: &quot;Debug|Win32&quot;<br />
Befehlszeilen Die temporäre Datei &quot;d:\Dokumente und Einstellungen\iSe3U\Desktop\XPTheme\Test\Debug\RSP00000121123844.rsp&quot; wird erstellt. Inhalt:<br />
[<br />
/OUT:&quot;.\Debug/Test.exe&quot; /INCREMENTAL /MANIFEST /MANIFESTFILE:&quot;.\Debug\Test.exe.intermediate.manifest&quot; /DEBUG /PDB:&quot;.\Debug/Test.pdb&quot; /SUBSYSTEM:WINDOWS /MACHINE:X86 odbc32.lib odbccp32.lib comctl32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib</p>
<p>&quot;.\Debug\resource.res&quot;</p>
<p>&quot;.\Debug\StdAfx.obj&quot;</p>
<p>&quot;.\Debug\Test.obj&quot;</p>
<p>&quot;.\Debug\Test.exe.embed.manifest.res&quot;<br />
]Erstellen der Befehlszeile &quot;link.exe @&quot;d:\Dokumente und Einstellungen\iSe3U\Desktop\XPTheme\Test\Debug\RSP00000121123844.rsp&quot; /NOLOGO /ERRORREPORT:PROMPT&quot; Ausgabefenster Verknüpfen...<br />
CVTRES : fatal error CVT1100: Doppelte Ressource. type:MANIFEST, name:1, language:0x0409.<br />
LINK : fatal error LNK1123: Fehler bei der Konvertierung in COFF: Datei ist ungültig oder beschädigt.<br />
Ergebnisse Das Buildprotokoll wurde unter &quot;file://d:\Dokumente und Einstellungen\iSe3U\Desktop\XPTheme\Test\Debug\BuildLog.htm&quot; gespeichert.<br />
Test - 2 Fehler, 0 Warnung(en)</p>
</blockquote>
<p>Gruß Funjoy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326052</guid><dc:creator><![CDATA[Funjoy]]></dc:creator><pubDate>Sun, 15 Jul 2007 18:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 15 Jul 2007 18:57:27 GMT]]></title><description><![CDATA[<p>weis garnet was du hast</p>
<pre><code>Ressourcen werden kompiliert...
Kompilierung läuft...
StdAfx.cpp
Kompilierung läuft...
Test.cpp
Linker-Vorgang läuft...

Test.exe - 0 Fehler, 0 Warnung(en)
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326062</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326062</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sun, 15 Jul 2007 18:57:27 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 15 Jul 2007 19:01:59 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/7281">@Ascharan</a></p>
<p>Ja mich wundert das auch bei allen anderen die ich kenne Funktioniert es aber bei mir nicht -.-</p>
<p>Gruß Funjoy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326067</guid><dc:creator><![CDATA[Funjoy]]></dc:creator><pubDate>Sun, 15 Jul 2007 19:01:59 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 15 Jul 2007 19:17:01 GMT]]></title><description><![CDATA[<p>probier mal das !</p>
<pre><code>[cpp]
#include &lt;windows.h&gt; 
#include &lt;commctrl.h&gt; 

#pragma comment(lib,&quot;Comctl32.lib&quot;) 

#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

LRESULT CALLBACK WndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam );

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
                   PSTR szCmdLine, int iCmdShow) 
{ 
	InitCommonControls();
    MessageBox (NULL, TEXT(&quot;Hello, WinAPI!&quot;), TEXT(&quot;HelloMsg&quot;), 
                MB_OK | MB_ICONQUESTION | MB_HELP); 
    return 0; 
}

LRESULT CALLBACK WndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam )
{
	switch( message )
	{
		case WM_COMMAND:
			break;
		case WM_CLOSE: // Beenden der Anwendung
			PostQuitMessage(0);
			break;
		case WM_DESTROY: // Fenster Zerstoeren
			PostQuitMessage(0);
			break;
		default: 
			break;
	}
    return FALSE;
}[/cpp]
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1326082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326082</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sun, 15 Jul 2007 19:17:01 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 15 Jul 2007 19:25:11 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/7281">@Ascharan</a><br />
Tausend Dank es hat geklappt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
<p>Interesse halber, warum klappt es bei manchen leuten einfach mit den Zeilen</p>
<pre><code class="language-cpp">#ifdef _UNICODE
#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
#endif
</code></pre>
<p>Gruß Funjoy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326093</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326093</guid><dc:creator><![CDATA[Funjoy]]></dc:creator><pubDate>Sun, 15 Jul 2007 19:25:11 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 15 Jul 2007 19:28:03 GMT]]></title><description><![CDATA[<p>Ka.<br />
mit #ifdef _UNICODE hats bei mir auch net geklappt</p>
<p>vieleicht kennt jochen ne antwort der kennt sich mit unicode Progs aus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326095</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sun, 15 Jul 2007 19:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 15 Jul 2007 23:30:53 GMT]]></title><description><![CDATA[<p>Ascharan schrieb:</p>
<blockquote>
<p>Ka.<br />
mit #ifdef _UNICODE hats bei mir auch net geklappt</p>
</blockquote>
<p>Ich bin zwar nicht jochen, aber damit die Anweisungen vom Präprozessor dann auch abgearbeitet (und implementiert) werden, muss natürlich vorher auch ein</p>
<pre><code class="language-cpp">#define _UNICODE
</code></pre>
<p>rein.</p>
<p>Und wenn das Prog schon Unicode unterstützen soll, noch zusätzlich</p>
<pre><code class="language-cpp">#define UNICODE
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1326211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326211</guid><dc:creator><![CDATA[Analog Bit]]></dc:creator><pubDate>Sun, 15 Jul 2007 23:30:53 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Mon, 16 Jul 2007 00:26:55 GMT]]></title><description><![CDATA[<p>nur funktioniert der code ja nich wie er ihn verwendete</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326223</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Mon, 16 Jul 2007 00:26:55 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Mon, 16 Jul 2007 02:29:34 GMT]]></title><description><![CDATA[<p>Wenn er zuerst auch nicht gegen die comctl32.lib gelinkt hat und auch keinen Funktionsaufruf InitCommonControls verwendet hat wird das ganze auch nicht funktionieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326230</guid><dc:creator><![CDATA[Analog Bit]]></dc:creator><pubDate>Mon, 16 Jul 2007 02:29:34 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Mon, 16 Jul 2007 02:55:36 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>@Analog Bit</p>
<p>Bei einen Freund funktioniert es nur mit den Zeilen:</p>
<pre><code>#ifdef _UNICODE
#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
#endif
</code></pre>
<p>Ohne das er irgend wo:</p>
<pre><code class="language-cpp">#include &lt;commctrl.h&gt;

#pragma comment(lib,&quot;Comctl32.lib&quot;)
...
InitCommonControls(); 
...
</code></pre>
<p>Defeniert ist! Das ist ja das was mich verwundert. Warum ist das bei Ihm so einfach und bei mir etwas komplizierter?!</p>
<p>Gruß Funjoy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326232</guid><dc:creator><![CDATA[Funjoy]]></dc:creator><pubDate>Mon, 16 Jul 2007 02:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Mon, 16 Jul 2007 06:08:06 GMT]]></title><description><![CDATA[<p>Das geht bei mir genauso. Alerdings muss Dein Projektein UNICODE Projekt sein. das machen die äußeren ifdef's!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326252</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 16 Jul 2007 06:08:06 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Mon, 16 Jul 2007 10:15:07 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Also ich bin der Freund/Kumpel.</p>
<p>Wir haben beide zum gleichen Zeitpunkt VC 2005 Exp. Edition installiert mit SP1 und PDSK.<br />
Keiner hat was an die Einstellungen geändert. Bei mir funktioniert der Code anstandslos bei ihn nicht. Komisch <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>
<p>Naja jetzt funz es ja.</p>
<p>BTW: Tolles Forum <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326412</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326412</guid><dc:creator><![CDATA[Sillo]]></dc:creator><pubDate>Mon, 16 Jul 2007 10:15:07 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sat, 29 Sep 2007 19:36:26 GMT]]></title><description><![CDATA[<p>Ich habe es bei mir auch probiert, allerdings ohne VC, dafür mit [guck unten in die sigi^^]. Einmal habe ich es mit der resourcen-variante probiert, und dann mit den InitCommonControls ()-blabla. Es hat beides nicht geklappt. Liegt das daran, dass ich kein VC benutze oder woran liegt das?</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375035</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 29 Sep 2007 19:36:26 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sat, 29 Sep 2007 19:43:28 GMT]]></title><description><![CDATA[<p>Der Compiler spielt keine Rolle. Das OS schaut ja nicht, mit welchem Compiler was erstellt wurde.<br />
Du musst nur das Manifest einbetten (ist nicht zwigend nötig, geht auch mit externem Manifest) und die passende Resource-Typ/ID vergeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375039</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 29 Sep 2007 19:43:28 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sat, 29 Sep 2007 19:47:46 GMT]]></title><description><![CDATA[<p>na gut, dann probiere ich das nochmal...mal sehen, aber erstmal danke <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>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375043</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 29 Sep 2007 19:47:46 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sat, 29 Sep 2007 20:01:56 GMT]]></title><description><![CDATA[<p>funktioniert auch nicht...hier mal der code:</p>
<p><strong>main.cpp</strong></p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;commctrl.h&gt;

#pragma comment (lib, &quot;libs/cw32mt.lib&quot;)
#pragma comment (lib, &quot;libs/comctl32.lib&quot;)

#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

#include &quot;header/resource.h&quot;

HWND hMain;

HINSTANCE g_hInst;
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);

int WINAPI WinMain (HINSTANCE hI, HINSTANCE hPrI, LPSTR szCmdLine, int iCmdShow)
{
    InitCommonControls();

	char MainWin[] = &quot;Hauptfenster&quot;;

	UNREFERENCED_PARAMETER (hPrI);
	UNREFERENCED_PARAMETER (szCmdLine);

	g_hInst = hI;
	WNDCLASS wc;

	wc.style = CS_HREDRAW | CS_VREDRAW;
	wc.lpfnWndProc = WndProc;
	wc.cbClsExtra = 0;
	wc.cbWndExtra = 0;
	wc.hInstance = hI;
	wc.hIcon = LoadIcon (hI, MAKEINTRESOURCE (MAIN_ICON));
	wc.hCursor = LoadCursor (NULL, IDC_ARROW);
	wc.hbrBackground = (HBRUSH) (COLOR_BTNFACE + 1);
	wc.lpszMenuName = NULL;
	wc.lpszClassName = MainWin;

	RegisterClass (&amp;wc);

	int x = 410;
	x += GetSystemMetrics (SM_CXDLGFRAME) * 2;	 //Breite des Rahmens * 2 (Links/Rechts)

	int y = 250;
	y += GetSystemMetrics (SM_CYCAPTION);		  //Höhe der Titelleiste
	//y += GetSystemMetrics (SM_CYMENU);			//Höhe der Menu-Bar
	y += GetSystemMetrics (SM_CYDLGFRAME) * 2;	 //Höhe des Rahmens * 2 (Oben/Unten)

	int xPos = (GetSystemMetrics (SM_CXSCREEN) / 2) - (x / 2);
	int yPos = (GetSystemMetrics (SM_CYSCREEN) / 2) - (y / 2);

	hMain = CreateWindow (MainWin, &quot;testfenster&quot;, WS_OVERLAPPEDWINDOW, xPos, yPos, x, y, NULL, NULL, hI, NULL);
	ShowWindow (hMain, iCmdShow);
	UpdateWindow (hMain);

	MSG msg;
	while (GetMessage (&amp;msg, NULL, 0, 0))
	{
		TranslateMessage (&amp;msg);
		DispatchMessage (&amp;msg);
	}
	return msg.wParam;
}

LRESULT CALLBACK WndProc (HWND hMain, UINT message, WPARAM wParam, LPARAM lParam)
{
	PAINTSTRUCT ps;
	HDC hDC;
	HWND hBtn;

	switch (message)
	{
		case WM_CREATE:
            hBtn = CreateWindow (&quot;Button&quot;, &quot;XP-STYLE&quot;, WS_CHILD | WS_VISIBLE, 5, 5, 123, 50, hMain, 0, g_hInst, NULL);
		return 0;

        ...

	}

	return DefWindowProc (hMain, message, wParam, lParam);
}
</code></pre>
<p><strong>res.rc</strong></p>
<pre><code>#include &quot;header/resource.h&quot;

MAIN_ICON ICON DISCARDABLE &quot;images/icon.ico&quot;

ACCS ACCELERATORS DISCARDABLE
BEGIN
    VK_ESCAPE,		ID_ACCEXIT		VIRTKEY,	NOINVERT
END

IDR_XPSTYLE            24      DISCARDABLE     &quot;winxpstyle.bin&quot;
</code></pre>
<p><strong>resource.h</strong></p>
<pre><code class="language-cpp">#define MAIN_ICON						100

#define IDR_XPSTYLE                     101

#define ID_ACCEXIT						2001
</code></pre>
<p>hoffe es kann jemand helfen</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375052</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 29 Sep 2007 20:01:56 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sat, 29 Sep 2007 21:09:47 GMT]]></title><description><![CDATA[<p>Das<br />
#pragma comment(linker,&quot;/manifestdependency: ....<br />
versteht nur der MS Compiler!<br />
Verwende das XML-Manifest und binde es als Resource ein!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375076</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375076</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 29 Sep 2007 21:09:47 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sat, 29 Sep 2007 21:26:49 GMT]]></title><description><![CDATA[<p>habe ich doch eigentlich gemacht! das ist das hier:<br />
<strong>res.rc</strong></p>
<pre><code>IDR_XPSTYLE            24      DISCARDABLE     &quot;winxpstyle.bin&quot;
</code></pre>
<p>und darin steht:</p>
<p><strong>winxpstyle.bin</strong></p>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; 
&lt;assembly 
   xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot; 
   manifestVersion=&quot;1.0&quot;&gt;
 &lt;assemblyIdentity 
    processorArchitecture=&quot;x86&quot; 
    version=&quot;5.1.0.0&quot;
    type=&quot;win32&quot;
    name=&quot;ss&quot;/&gt;
 &lt;description&gt;sss&lt;/description&gt;
 &lt;dependency&gt;
  &lt;dependentAssembly&gt;
    &lt;assemblyIdentity
         type=&quot;win32&quot;
         name=&quot;Microsoft.Windows.Common-Controls&quot;
         version=&quot;6.0.0.0&quot;
         publicKeyToken=&quot;6595b64144ccf1df&quot;
         language=&quot;*&quot;
         processorArchitecture=&quot;x86&quot;/&gt;
  &lt;/dependentAssembly&gt;
 &lt;/dependency&gt;
&lt;/assembly&gt;
</code></pre>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375084</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375084</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sat, 29 Sep 2007 21:26:49 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 30 Sep 2007 11:31:41 GMT]]></title><description><![CDATA[<p>*push* - weil es relativ dringend ist...brauch das für ne facharbeit, di muss im feb fertig sein</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375262</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sun, 30 Sep 2007 11:31:41 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 30 Sep 2007 13:23:19 GMT]]></title><description><![CDATA[<p>Und IDR_XPSTYLE hat hoffentlich die ID 1?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375322</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 30 Sep 2007 13:23:19 GMT</pubDate></item><item><title><![CDATA[Reply to XP Style - Funktioniert nicht -.- on Sun, 30 Sep 2007 14:10:23 GMT]]></title><description><![CDATA[<p>*hust* ist das bescheuert, ja jetzt schon. danke an alle und an dich</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375343</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375343</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sun, 30 Sep 2007 14:10:23 GMT</pubDate></item></channel></rss>