一,stdafx.h 增加在下面的例子。BCGCBProInc.h间接介绍lib。
#include <BCGCBProInc.h> // BCGControlBar Pro
#if _MSC_VER >= 1400
#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
二,应用程序类的父类由CWinApp改成CBCGPWinApp。
构造函数添加例如以下代码:
SetVisualTheme(BCGP_VISUAL_THEME_OFFICE_2010_BLUE);
三。该对话框的父那里CDialog更改CBCGPDialog。
构造函数添加以下代码示例,:
EnableVisualManagerStyle(TRUE, TRUE);