One, StdAfx.h added in the following example. BCGCBProInc.h introduces Lib indirectly.
#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
Second, the parent class of the application class is changed from CWinApp to Cbcgpwinapp.
The constructor adds the following code, for example:
Setvisualtheme (Bcgp_visual_theme_office_2010_blue);
Three. The dialog box's parent is there CDialog change Cbcgpdialog.
constructor to add the following code example:
Enablevisualmanagerstyle (True, true);
How dialog-based project is based on changing BCG's