How to change the skin of a Bcgcontrolbarpro

Source: Internet
Author: User

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);
  ..................
}

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.