SDK App new window style (GO)

Source: Internet
Author: User
Tags microsoft c

SDK uses XP style controlsJanuary 15, 2013 ⁄ general ⁄ a total of 1165 characters ⁄ font size small medium big ⁄ comments off

Starting with Windows XP, the system provides a number of flashy styles for most of the controls we use to create the application user interface, which are called user interface themes. However, by default, the application does not support user interface themes. An easy way to support user interface themes is to provide an XML-formatted list with your application. The application will bind to the correct version of ComCtl32.dll based on this list, so that ComCtl32.dll can redraw the Windows controls in the correct way. The Microsoft C + + connector provides a manifestdependency option that is set with the appropriate parameters for the pragma indicator.

//Needed for supporting Xp/vista styles. #ifdef _UNICODE 
#if defined _m_ix86
# pragma comment (linker, "/manifestdependency:\" Type= ' Win32 ' Name= ' Microsoft.windows.common-controls ' version= ' 6.0.0.0 ' processorarchitecture= ' x86 ' publickeytoken= ' 6595b64144ccf1df ' language= ' * ' \ ' ")
#elif defined _m_ia64
#pragma COMMENT (linker, "/manifestdependency:\" Type= ' Win32 ' Name= ' Microsoft.windows.common-controls ' version= ' 6.0.0.0 ' processorarchitecture= ' ia64 ' publickeytoken= ' 6595b64144ccf1df ' language= ' * ' \ ' ")
#elif defined _m_x64
#pragma COMMENT (linker, "/manifestdependency:\" Type= ' Win32 ' Name= ' Microsoft.windows.common-controls ' version= ' 6.0.0.0 ' processorarchitecture= ' amd64 ' publickeytoken= ' 6595b64144ccf1df ' language= ' * ' \ ' ")
#else
#pragma Comment (linker, "/manifestdependency:\" Type= ' Win32 ' Name= ' Microsoft.windows.common-controls ' version= ' 6.0.0.0 ' Processorarchitecture= ' * ' publickeytoken= ' 6595b64144ccf1df ' language= ' * ' \ ')
#endif
#endif

SDK App new window style (go)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.