VS2010改界面

  1. /*用vs2010做mfc界面,按钮的风格默认都是经典的98风格,想改成win7风格原来这么简单
  2. 找到你工程里包含的#include "stdafx.h",在里面添加下面的语句就可以了*/
  3. //以下语句为修改按钮风格为Win7系统风格
  4. #if defined _M_IX86
  5. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
  6. #elif defined _M_IA64
  7. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  8. #elif defined _M_X64
  9. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  10. #else
  11. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  12. #endif
posted @ 2021-01-13 15:45  上下求索之  阅读(157)  评论(0编辑  收藏  举报