From a8c41135aa93f206409431e743507c171bc39edd Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 3 Jan 2025 08:29:04 -0800 Subject: [PATCH] Enable themed Windows dialogs when building with Visual Studio --- test/testmessage.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/testmessage.c b/test/testmessage.c index f670d3599f..30c7005436 100644 --- a/test/testmessage.c +++ b/test/testmessage.c @@ -11,13 +11,17 @@ */ /* Simple test of the SDL MessageBox API */ - #include #include #include #include +/* This enables themed Windows dialogs when building with Visual Studio */ +#if defined(SDL_PLATFORM_WINDOWS) && defined(_MSC_VER) +#pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") +#endif + /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */ static void quit(int rc)