I'm writing an application which injects a DLL into a certain game, and my DLL then creates my application's user interface in the game's main thread (causing the game itself to execute my window's message loop between frames). This works, but the game doesn't enable Visual Styles, causing the user interface to look like it would on an older OS such as XP. It doesn't do this if I don't create the user interface from the game's main thread, but that's not possible with this app because it calls non-thread-safe functions in the game (i.e. it can only be done from the main thread).
Normally, I'd just add a linker directive to my DLL's UI's header file to enable Visual Styles, but it's being ignored, I assume because the process's EXE doesn't have Visual Styles enabled.
Is there any way to enable Visual Styles other than enabling them in the manifest file or using a linker directive (which actually just adds to the manifest file)? I've tried both of those, and neither of them work. Thanks.
Here's an article on Visual Styles: http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175(v=vs.85).aspx