1. Add the following content to stdafx. h. Bcgcbproinc. h indirectly imports 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
2. The application class's parent class is changed from cwinapp to cbcgpwinapp. Add the following code to the constructor:
SetVisualTheme(BCGP_VISUAL_THEME_OFFICE_2010_BLUE);
3. The parent class of the dialog box changes cdialog to cbcgpdialog. Add the following code to the constructor:
EnableVisualManagerStyle(TRUE, TRUE);
How to change a dialog box-based project to a BCG-based project