How dialog-based project is based on changing BCG's

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.