How to enable visual styles without a manifest

前端 未结 3 1130
青春惊慌失措
青春惊慌失措 2020-12-01 13:29

According to the docs:

\"If you want your application to use ComCtl32.dll version 6, you must add an application manifest or compiler directive

3条回答
  •  温柔的废话
    2020-12-01 13:53

    If you had kept reading, you would have found the answer:

    If you are using Microsoft Visual C++ 2005 or later, you can add the following compiler directive to your source code instead of manually creating a manifest. For readability, the directive is broken into two lines here.

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

提交回复
热议问题