Effect chart
Figure I
We know that using VC to develop a large application system, you will encounter a problem of interface design and style layout. It would be a huge workload if everything was designed and written from the beginning. It's hard to write a more robust, powerful interface system in a short time. There are also unpredictable risks to software project progress. In this situation, the BCG library was born. Currently, BCG can make large interface systems such as Visual Studio. Net 2003, Outlook, and so on. Almost meet the current market, the vast majority of management information system interface requirements. In my view many erp,gsp and so on MIS software company, all is adopting the BCG system. The library is very stable and easy to use.
With the introduction of Mircorsoft Windows XP system, the computer world has entered a personalized era. User to the interface system to put forward a higher level of requirements. Although BCG itself carried the skin project, the function of the project was very weak. Mainly reflected in:
You cannot change the skin of the title bar, scroll bar, and Windows System Standard window;
No rich interface elements to provide downloads.
I use the skin++ library (www.uipower.com), in the BCG example made a few changes, BCG has a dynamic skin-changing function.
Here we take bcgcbdotnetexample as an example:
1, Skin header file contains the header file containing the skin library in the StdAfx.h.
#include "SkinPlusPlus.h"
2, the Skin Library loading:
BOOL CBCGCBDotNetExampleApp::InitInstance()
{
......
InitializeSkin(_T("XPCorona.ssk"));
......
}
3, let BCG again remove the system color:
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
..................
-----------------
// Create menu bar:
//-----------------
if (!m_wndMenuBar.Create (this))
{
TRACE0("Failed to create menubar\n");
return -1; // fail to create
}
m_wndMenuBar.SendMessage(WM_SYSCOLORCHANGE,0,0);
..................
}