How to change management themes in a Win32 API application?

If I create a button in the Win32 API, the default connection theme looks like a Windows 95/98 button. I remember in the past, Microsoft forums told me how to get the XP style, but I don’t remember how to do it. Is there a way to programmatically or manually change control topics in a Win32 application? Thank.

+3
source share
2 answers

You want to include visual styles by adding a manifest dependency to general assembly 6 in the application manifest.

If you are using DevStudio, this should be as simple as adding the #pragma directive from the linked page:

#pragma comment(linker,"\"/manifestdependency:type='win32'        
                name='Microsoft.Windows.Common-Controls'
                version='6.0.0.0' processorArchitecture='*'
                publicKeyToken='6595b64144ccf1df' language='*'\"")
+7
0

Source: https://habr.com/ru/post/1760590/


All Articles