C++-MFC-BCG(5)-Dialog对话框-VC6.0-实例源码

        基于MFC写的一个Dialog和几个控件,因为MFC界面一直不太美观,用BCG美化了一下。附VC6.0底下的实例源码。

    1.对比图

    2.实现步骤


   1.对比图

 

   2.实现步骤

         2.1.在stdafx.h中添加 宏

 

 #define CFrameWnd CBCGPFrameWnd

#define CMDIFrameWnd CBCGPMDIFrameWnd

#define CMDIChildWnd CBCGPMDIChildWnd

#define CToolBar CBCGPToolBar

#define CStatusBar CBCGPStatusBar

#define CDialog CBCGPDialog

#define CWinApp CBCGPWinApp

#define CProgressCtrl CBCGPProgressCtrl

#define CScrollBar CBCGPScrollBar

#define CButton CBCGPButton   

#define CEdit CBCGPEdit

#define CListBox CBCGPListBox

#define CComboBox CBCGPComboBox

#define CListCtrl CBCGPListCtrl

#define CScrollView CBCGPChartView

#define CTreeCtrl CBCGPShellTree

#define CToolTipCtrl CBCGPToolTipCtrl

#define CSpinButtonCtrl CBCGPSpinButtonCtrl

#define CPropertyPage CBCGPPropertyPage

#define CHeaderCtrl CBCGPHeaderCtrl

#define CFormView CBCGPFormView

 

 

2.2.在app::InitInstance()中添加AfxEnableControlContainer();

2.3.在app::app()中添加SetVisualTheme(BCGP_VISUAL_THEME_OFFICE_2010_SILVER);

2.4.在每一个需要使用bcg风格的dlg.cpp中的dlg::dlg中追加EnableVisualManagerStyle(TRUE, TRUE);

 

posted @ 2019-11-06 17:28  jasmineTang  阅读(295)  评论(0)    收藏  举报