Browse Source

Merge pull request #256 from zrax/win-themes

Use Windows themes for the Win32 GUI executables
Adam Johnson 12 years ago
parent
commit
110360e170
  1. 4
      Sources/Plasma/Apps/plClient/winmain.cpp
  2. 5
      Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp
  3. 5
      Sources/Tools/plFontConverter/plFontConverter.cpp
  4. 5
      Sources/Tools/plLocalizationEditor/plLocalizationEditor.cpp
  5. 5
      Sources/Tools/plResBrowser/plResBrowser.cpp

4
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='*'\"")

5
Sources/Plasma/Apps/plUruLauncher/SelfPatcher.cpp

@ -337,3 +337,8 @@ bool SelfPatch (bool noSelfPatch, bool * abort, ENetError * result, plLauncherIn
return patched; 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='*'\"")

5
Sources/Tools/plFontConverter/plFontConverter.cpp

@ -87,3 +87,8 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
return 0; 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='*'\"")

5
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); 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='*'\"")

5
Sources/Tools/plResBrowser/plResBrowser.cpp

@ -126,3 +126,8 @@ BOOL WinInit(HINSTANCE hInst, int nCmdShow)
return TRUE; 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='*'\"")

Loading…
Cancel
Save