BCGSoft > Developer Area > MFC/BCGControlBar Class Relation

Relation between MFC and BCGControlBar classes

Since a lot of BCGControlBar Pro classes were incorporated to MFC (Visual Studio 2008 SP1 or later, please read the full story here: http://www.bcgsoft.com/pressreleases/PR071110.pdf), adapting an application that uses BCGControlBar to MFC or MFC-based application to BCGControlBar Pro is a pretty easy task. The table below displays an MFC class name and corresponding BCGControlBar Pro name:

MFC Class BCGControlBar Class
AFX_GLOBAL_DATA BCGPGLOBAL_DATA
CAfxDrawState CBCGPDrawState
CAutoHideDockSite CBCGPAutoHideDockBar
CBasePane CBCGPBaseControlBar
CBaseTabbedPane CBCGPBaseTabbedBar
CContextMenuManager CBCGPContextMenuManager
CDialogEx CBCGPDialog
CDockablePane CBCGPDockingControlBar
CDockablePaneAdapter CBCGPDockingCBWrapper
CDockingManager CBCGPDockManager
CDockingPanesRow CBCGPDockBarRow
CDockSite CBCGPDockBar
CDrawingManager CBCGPDrawManager
CFrameImpl CBCGPFrameImpl
CFrameWndEx CBCGPFrameWnd
CFormView CBCGPFormView
CGlobalUtils CBCGPGlobalUtils
CKeyboardManager CBCGPKeyboardManager
CMDIChildWndEx CBCGPMDIChildWnd
CMDIFrameWndEx CBCGPMDIFrameWnd
CMDITabInfo CBCGPMDITabParams
CMenuImages CBCGPMenuImages
CMenuTearOffManager CBCGPTearOffManager
CMFCAutoHideButton CBCGPAutoHideButton
CMFCBaseTabCtrl CBCGPBaseTabWnd
CMFCButton CBCGPButton
CMFCCaptionBar CBCGPCaptionBar
CMFCCaptionButton CBCGPCaptionButton
CMFCColorBar CBCGPColorBar
CMFCColorButton CBCGPColorButton
CMFCColorDialog CBCGPColorDialog
CMFCColorMenuButton CBCGPColorMenuButton
CMFCColorPickerCtrl CBCGPColorPickerCtrl
CMFCDesktopAlertDialog CBCGPPopupDlg
CMFCDesktopAlertWnd CBCGPPopupWindow
CMFCDesktopAlertWndInfo CBCGPPopupWndParams
CMFCDragFrameImpl CBCGPDragFrameImpl
CMFCDropDownToolBar CBCGPDropDownToolBar
CMFCDropDownToolbarButton CBCGPDropDownToolbarButton
CMFCEditBrowseCtrl CBCGPEdit
CMFCFontComboBox CBCGPFontComboBox
CMFCFontInfo CBCGPFontDesc
CMFCHeaderCtrl CBCGPHeaderCtrl
CMFCImageEditorDialog CBCGPImageEditDlg
CMFCKeyMapDialog CBCGPKeyMapDlg
CMFCLinkCtrl CBCGPURLLinkButton
CMFCListCtrl CBCGPListCtrl
CMFCMaskedEdit CBCGPMaskEdit
CMFCMenuBar CBCGPMenuBar
CMFCMenuButton CBCGPMenuButton
CMFCOutlookBar CBCGPOutlookBar
CMFCOutlookBarPane CBCGPOutlookBarPane
CMFCOutlookBarTabCtrl CBCGPOutlookWnd
CMFCPopupMenu CBCGPPopupMenu
CMFCPopupMenuBar CBCGPPopupMenuBar
CMFCPropertyGridColorProperty CBCGPColorProp
CMFCPropertyGridCtrl CBCGPPropList
CMFCPropertyGridFileProperty CBCGPFileProp
CMFCPropertyGridFontProperty CBCGPFontProp
CMFCPropertyGridProperty CBCGPProp
CMFCPropertyPage CBCGPPropertyPage
CMFCPropertySheet CBCGPPropertySheet
CMFCReBar CBCGPReBar
CMFCRibbonApplicationButton CBCGPRibbonMainButton
CMFCRibbonBar CBCGPRibbonBar
CMFCRibbonBaseElement CBCGPBaseRibbonElement
CMFCRibbonButton CBCGPRibbonButton
CMFCRibbonButtonsGroup CBCGPRibbonButtonsGroup
CMFCRibbonCategory CBCGPRibbonCategory
CMFCRibbonCheckBox CBCGPRibbonCheckBox
CMFCRibbonColorButton CBCGPRibbonColorButton
CMFCRibbonComboBox CBCGPRibbonComboBox
CMFCRibbonContextCaption CBCGPRibbonContextCaption
CMFCRibbonCustomizeDialog CBCGPRibbonCustomize
CMFCRibbonEdit CBCGPRibbonEdit
CMFCRibbonFontComboBox CBCGPRibbonFontComboBox
CMFCRibbonGallery CBCGPRibbonPaletteButton
CMFCRibbonGalleryMenuButton CBCGPRibbonPaletteMenuButton
CMFCRibbonLabel CBCGPRibbonLabel
CMFCRibbonLinkCtrl CBCGPRibbonHyperlink
CMFCRibbonMainPanel CBCGPRibbonMainPanel
CMFCRibbonMiniToolBar CBCGPRibbonFloaty
CMFCRibbonPanel CBCGPRibbonPanel
CMFCRibbonProgressBar CBCGPRibbonProgressBar
CMFCRibbonSlider CBCGPRibbonSlider
CMFCRibbonStatusBar CBCGPRibbonStatusBar
CMFCRibbonStatusBarPane CBCGPRibbonStatusBarPane
CMFCRibbonUndoButton CBCGPRibbonUndoButton
CMFCShellListCtrl CBCGPShellList
CMFCShellTreeCtrl CBCGPShellTree
CMFCSpinButtonCtrl CBCGPSpinButtonCtrl
CMFCStatusBar CBCGPStatusBar
CMFCTabCtrl CBCGPTabWnd
CMFCTasksPane CBCGPTasksPane
CMFCTasksPaneTask CBCGPTask
CMFCTasksPaneTaskGroup CBCGPTasksGroup
CMFCToolBar CBCGPToolBar
CMFCToolBarButton CBCGPToolbarButton
CMFCToolBarComboBoxButton CBCGPToolbarComboBoxButton
CMFCToolBarComboBoxEdit CBCGPComboEdit
CMFCToolBarDateTimeCtrl CBCGPToolbarDateTimeCtrl
CMFCToolBarEditBoxButton CBCGPToolbarEditBoxButton
CMFCToolBarFontComboBox CBCGPToolbarFontCombo
CMFCToolBarFontSizeComboBox CBCGPToolbarFontSizeCombo
CMFCToolBarImages CBCGPToolBarImages
CMFCToolBarInfo CBCGPToolBarParams
CMFCToolBarMenuButton CBCGPToolbarMenuButton
CMFCToolBarsCustomizeDialog CBCGPToolbarCustomize
CMFCToolTipCtrl CBCGPToolTipCtrl
CMFCToolTipInfo CBCGPToolTipParams
CMFCVisualManager CBCGPVisualManager
CMFCVisualManagerOfficeXP CBCGPVisualManagerXP
CMFCVisualManagerOffice2003 CBCGPVisualManager2003
CMFCVisualManagerOffice2007 CBCGPVisualManager2007
CMFCVisualManagerVS2005 CBCGPVisualManagerVS2005
CMFCVisualManagerVS2008 CBCGPVisualManagerVS2008
CMFCVisualManagerWindows CBCGPWinXPVisualManager
CMFCVisualManagerWindows7 CBCGPVisualManagerScenic
CMFCWindowsManagerDialog CBCGPWindowsManagerDlg
CMouseManager CBCGPMouseManager
CMultiPaneFrameWnd CBCGPMultiMiniFrameWnd
COleIPFrameWndEx CBCGPOleIPFrameWnd
CPane CBCGPControlBar
CPaneContainer CBCGPBarContainer
CPaneContainerManager CBCGPBarContainerManager
CPaneDialog CBCGPDialogBar
CPaneDivider CBCGPSlider
CPaneFrameWnd CBCGPMiniFrameWnd
CRecentDockSiteInfo CBCGPRecentContainerInfo
CSettingsStore CBCGPRegistry
CShellManager CBCGPShellManager
CSmartDockingInfo CBCGPSmartDockingParams
CSplitterWndEx CBCGPSplitterWnd
CTabbedPane CBCGPTabbedControlBar
CTabView CBCGPTabView
CTooltipManager CBCGPTooltipManager
CUserTool CBCGPUserTool
CUserToolsManager CBCGPUserToolsManager
CVSListBox CBCGPEditListBox
CWinAppEx CBCGPWinApp

Some other relations:

In the table below you can find frequently used MFC contants, global variables and methods and corresponding BCGControlBar names.

MFC BCGControlBar for MFC
AFX_DEFAULT_TOOLBAR_STYLE dwDefaultToolbarStyle
AFX_CBRS_FLOAT CBRS_BCGP_FLOAT
AFX_CBRS_AUTOHIDE CBRS_BCGP_AUTOHIDE
AFX_CBRS_RESIZE CBRS_BCGP_RESIZE
AFX_WM_CHANGE_ACTIVE_TAB BCGM_CHANGE_ACTIVE_TAB
AFX_WM_CREATETOOLBAR BCGM_CREATETOOLBAR
AFX_TOOLTIP_TYPE_ALL BCGP_TOOLTIP_TYPE_ALL
afxGlobalData globalData
clrHotLinkNormalText clrHotLinkText
DM_SHOW BCGP_DM_SHOW
DT_SMART BCGP_DT_SMART
Office2007_LunaBlue VS2007_LunaBlue
Office2007_ObsidianBlack VS2007_ObsidianBlack
Office2007_Silver VS2007_Silver
Office2007_Aqua VS2007_Aqua
AFXPrintPreview BCGPPrintPreview
DockPane DockControlBar
DockPaneLeftOf DockControlBarLeftOf
EnableAutoHidePanes EnableAutoHideBars
EnablePaneMenu EnableControlBarMenu
GetCmdMgr BCGPGetCmdMgr
GetPaneStyle GetBarStyle
GetUnderlyingWindow GetUnderlinedWindow
GetUserToolBarByIndex GetUserBarByIndex
LoadFromResource LoadFromVSRibbon
OnDrawPaneCaption OnDrawControlBarCaption
OnWorkspaceIdle OnBCGPIdle
SetDockingMode SetDockMode
SetPaneStyle SetBarStyle
SetWindows7Look SetScenicLook
ShowPane ShowControlBar

If you have any problems or questions regarding the application porting, please don't hesitate to contact our support: http://www.bcgsoft.com/support.htm