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='*'\"")
posted @ 2020-07-06 22:51  Theseus‘Ship  阅读(1165)  评论(0编辑  收藏  举报
Live2D