Visual Studio-MFC按钮风格美观为Win7版本(圆角矩形)
Visual Studio-MFC按钮风格美观为Win7版本(圆角矩形)
July 6, 2020 10:48 PM
参考 VS2010 MFC的按钮风格改变
VS2010建的MFC工程按钮默认的风格类似VC6.0(直角矩形),如想美观按钮改为WIN7的按钮风格(圆角矩形),只需在代码中找到头文件“stdafx.h”,在里面添加如下代码即可:
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
本文来自博客园,作者:Theseus‘Ship,转载请注明原文链接:https://www.cnblogs.com/yongchao/p/13258144.html