From 4233727f57ae3f6455895c8a6ed8f464d763d22a Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 10 Jan 2013 18:35:05 -0800 Subject: [PATCH] Generate ComCtl manifests for the Win32 GUI executables --- Sources/Plasma/Apps/plClient/winmain.cpp | 4 ++++ Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp | 5 +++++ Sources/Tools/plFontConverter/plFontConverter.cpp | 5 +++++ Sources/Tools/plLocalizationEditor/plLocalizationEditor.cpp | 5 +++++ Sources/Tools/plResBrowser/plResBrowser.cpp | 5 +++++ 5 files changed, 24 insertions(+) diff --git a/Sources/Plasma/Apps/plClient/winmain.cpp b/Sources/Plasma/Apps/plClient/winmain.cpp index 99eaa05a..fa05e161 100644 --- a/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/Sources/Plasma/Apps/plClient/winmain.cpp @@ -1564,3 +1564,7 @@ static void GetCryptKey(uint32_t* cryptKey, unsigned numElements) } } +/* Enable themes in Windows XP and later */ +#pragma comment(linker,"\"/manifestdependency:type='win32' \ +name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ +processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") diff --git a/Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp b/Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp index 491ad2f0..1b461ace 100644 --- a/Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp +++ b/Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp @@ -337,3 +337,8 @@ bool SelfPatch (bool noSelfPatch, bool * abort, ENetError * result, plLauncherIn return patched; } + +/* Enable themes in Windows XP and later */ +#pragma comment(linker,"\"/manifestdependency:type='win32' \ +name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ +processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") diff --git a/Sources/Tools/plFontConverter/plFontConverter.cpp b/Sources/Tools/plFontConverter/plFontConverter.cpp index 88ac9885..ebda5e56 100644 --- a/Sources/Tools/plFontConverter/plFontConverter.cpp +++ b/Sources/Tools/plFontConverter/plFontConverter.cpp @@ -87,3 +87,8 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin return 0; } + +/* Enable themes in Windows XP and later */ +#pragma comment(linker,"\"/manifestdependency:type='win32' \ +name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ +processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") diff --git a/Sources/Tools/plLocalizationEditor/plLocalizationEditor.cpp b/Sources/Tools/plLocalizationEditor/plLocalizationEditor.cpp index 699f0287..f819a44f 100644 --- a/Sources/Tools/plLocalizationEditor/plLocalizationEditor.cpp +++ b/Sources/Tools/plLocalizationEditor/plLocalizationEditor.cpp @@ -390,3 +390,8 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) return DefWindowProc(hWnd, msg, wParam, lParam); } + +/* Enable themes in Windows XP and later */ +#pragma comment(linker,"\"/manifestdependency:type='win32' \ +name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ +processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") diff --git a/Sources/Tools/plResBrowser/plResBrowser.cpp b/Sources/Tools/plResBrowser/plResBrowser.cpp index d2fc1af4..abf61b92 100644 --- a/Sources/Tools/plResBrowser/plResBrowser.cpp +++ b/Sources/Tools/plResBrowser/plResBrowser.cpp @@ -126,3 +126,8 @@ BOOL WinInit(HINSTANCE hInst, int nCmdShow) return TRUE; } + +/* Enable themes in Windows XP and later */ +#pragma comment(linker,"\"/manifestdependency:type='win32' \ +name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ +processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")