BCGControlBar Pro for MFC
CBCGPWinXPVisualManager

Detailed Description

The CBCGPWinXPVisualManager class provides the functionality that allows to draw various GUI elements using the current Windows native theme.

To enable this visual manager just call

CBCGPVisualManager::SetDefaultManager (RUNTIME_CLASS (CBCGPWinXPVisualManager));

Or, if you application class is derived from CBCGPWinApp,

theApp.SetVisualTheme(CBCGPWinApp::BCGP_VISUAL_THEME_DEFAULT);

If there is no Windows theme available (for example, the program is running under Windows Classic), the default visual manager (CBCGPVisualManager) will be used.

+ Inheritance diagram for CBCGPWinXPVisualManager:

Static Public Member Functions

 IsWinXPThemeAvailibleTells whether a Windows theme is available.
 
- Static Public Member Functions inherited from CBCGPVisualManager
 GetInstanceReturns a pointer to the visual manager object.
 
 RedrawAllForces all control bars in the application to be redrawn.
 
 SetDefaultManagerSets the default visual manager.
 

Static Public Attributes

 m_b3DTabsXPThemeSpecifies whether a theme should display 3D tabs.
 
 m_bPropertyPageThemeColorSpecifies whether a property page is drawn using default (theme) color.
 

Additional Inherited Members

- Public Member Functions inherited from CBCGPVisualManager
 BreadcrumbFillBackgroundCalled to fill background of Breadcrumb Navigation Bar.
 
 BreadcrumbFillProgressCalled to fill progress bar of Breadcrumb Navigation Bar.
 
 DrawGanttChartBackgroundCalled by the framework to draw Gantt Chart background.
 
 DrawGanttHeaderTextCalled by the framework to draw text in a Gantt control header cell.
 
 DrawGanttItemBackgroundCellCalled by the framework to fill background of a Gantt cell.
 
 GetControlFillColorGets "typical" control background color.
 
 GetControlTextColorGets "typical" control foreground color.
 
 GetDockingTabsBordersSizeReturns border size of docked tabbed bar.
 
 GetEditCtrlSelectionBkColorReturns background color of Advanced Edit control selection.
 
 GetEditCtrlSelectionTextColorReturns foreground color of Advanced Edit control selection.
 
 GetGanttColorsCalled by the framework to obtain colors (color scheme) to be used to draw Gantt Chart elements.
 
 GetMainButtonColorReturns color of main Ribbon button (pearl).
 
 GetMDITabsBordersSizeReturns border size of MDITabs window.
 
 GetMenuShadowDepthReturns a value that determines what is the width and height of the menu shadow.
 
 GetNcBtnSizeCalled to determine the size of caption (system) buttons provided by visual style.
 
 GetPopupMenuBorderSizeReturns border size for popup menus.
 
 GetRibbonComboTextColorReturns a ribbon combobox foreground color.
 
 GetSmartDockingThemeReturns default docking theme for Visual Manager.
 
 GetToolbarDisabledTextColorCalled by the framework to determine color disabled text displayed on disabled toolbar elements.
 
 GetURLLinkColorReturns a text color of URL link to be used by CBCGPURLLinkButton
 
 GetWindowCornerTypeCalled by the framework to obtain a specific window corner type (BCG_WINDOW_CORNER_TYPE).
 
 HasOverlappedAutoHideButtonsTells whether autohide buttons are overlapped.
 
 IsAutoGrayscaleImagesTells whether to convert all images to gray scale.
 
 IsAutohideScrollBarsTells whether the current Visual Manager supports auto-hidden scroll bar look.
 
 IsDockingTabHasBorderTells whether visualization code should draw a border around tabbed docking bars.
 
 IsDockingTabUpperCaseTells whether visualization code should draw a docking tab label in the upper case.
 
 IsEditSyntaxHilightingOnSelectionTells whether syntax hilighting in selected (colored) areas of advanced edit control is available for this visual theme.
 
 IsEmbossDisabledImageDetermines whether disabled images should be embossed.
 
 IsFadeInactiveImageDetermines whether toolbar/menu inactive images are drawn with the lighting (fading) effect.
 
 IsLook2000Tells whether the application's GUI elements have Microsoft Office 2000 look and feel.
 
 IsMenuFlatLookTells whether the menu buttons have the flat look (menu buttons don't look pressed).
 
 IsOwnerDrawCaptionTells whether current visual style implements owner draw caption of a frame window.
 
 IsOwnerDrawScrollBarTells whether the current Visual Manager supports custom scroll bar look.
 
 IsShadowHighlightedImageDetermines whether the shadow should be displayed when rendering highlighted images.
 
 OnDrawAppBarCaptionDraws application bar caption.
 
 OnDrawAutoHideButtonBorderCalled by the framework when it needs to draw the border for an autohide button.
 
 OnDrawControlBarCaptionTextCalled to draw a text on a caption of control bar.
 
 OnDrawDefaultRibbonImageCalled by the framework to draw default ribbon image.
 
 OnDrawDlgSizeBoxCalled by the framework to draw size box on resizable dialogs.
 
 OnDrawGridSelectionBorderCalled by the framework to draw border around selected items in grid control.
 
 OnDrawGroupCalled by the framework to draw a Group control.
 
 OnDrawOutlookBarSplitterCalled by the framework when it needs to draw the outlook bar splitter.
 
 OnDrawPropSheetListItemCalled by the framework do draw an item displayed on the list located at the left side of property sheet working in PropSheetLook_List mode.
 
 OnDrawRibbonButtonsGroupCalled by the framework when it needs to draw group of buttons.
 
 OnDrawRibbonCaptionCalled by the framework to draw caption of main frame when ribbon bar is integrated with the frame.
 
 OnDrawRibbonCaptionButtonCalled by the framework when it needs to draw a caption button located on ribbon bar.
 
 OnDrawRibbonCategoryCalled by the framework when it needs to draw a ribbon category
 
 OnDrawRibbonCategoryCaptionCalled by the library to draw the ribbon category caption (for context categories).
 
 OnDrawRibbonCategoryTabCalled by the framework to draw ribbon category tab.
 
 OnDrawRibbonComboDropButtonCalled by the framework to draw ribbon combobox drop button.
 
 OnDrawRibbonLabelCalled by the framework to draw ribbon label.
 
 OnDrawRibbonLaunchButtonCalled by the framework to draw ribbon launch button.
 
 OnDrawRibbonMainButtonCalled by the framework to draw ribbon Main Button.
 
 OnDrawRibbonMainPanelButtonBorderCalled by the framework to draw border of ribbon button located on the main panel.
 
 OnDrawRibbonMainPanelFrameCalled by the framework to draw frame around main panel.
 
 OnDrawRibbonPanelCaptionCalled by the framework to draw ribbon panel's caption.
 
 OnDrawRibbonSliderChannelDraws ribbon slider's channel.
 
 OnDrawRibbonSliderThumbDraws ribbon slider's thumb.
 
 OnDrawRibbonSliderZoomButtonDraws ribbon slider zoom buttons.
 
 OnDrawRibbonTabsFrameCalled to draw frame around ribbon tabs.
 
 OnDrawSliderChannelCalled by the framework to draw a slider channel.
 
 OnDrawSliderThumbCalled by the framework to draw a slider's thumb.
 
 OnDrawTabContentCalled by the framework when it needs to draw the tab interior (images, texts).
 
 OnEraseMDIClientAreaCalled by the framework to fill background of MDI client area.
 
 OnFillAutoHideButtonBackgroundCalled by the framework when it needs to fill background of an autohide button.
 
 OnFillDialogCalled by the framework to fill background of a themed dialog.
 
 OnFillHeaderCtrlBackgroundCalled by the framework when it needs to fill the background of a header control.
 
 OnFillPlannerCalled by the framework to fill background of planner control.
 
 OnFillPlannerWeekBarCalled by the framework to fill the planner week bar.
 
 OnFillPropListCalled to fill background of property list.
 
 OnFillRibbonBackstageFormCalled by the framework when it needs to draw background for a child dialog placed on backstage view.
 
 OnFillRibbonMainPanelButtonCalled by the framework to fill interior of ribbon button located on the main panel.
 
 OnFillSplitterBackgroundCalled by the framework when it needs to fill background of a split window.
 
 OnNcPaintCalled by the framework to paint non-client area of a window. The method paints frame caption and borders.
 
 OnSetWindowRegionCalled by the framework when a region has been set for frames and popup menus.
 
 SetEmbossDisabledImageEnables or disables the "embossed" mode for disabled toolbar images .
 
 SetFadeInactiveImageEnables or disables the lighting (fading) effect for toolbar/menu inactive (non-highlighted) images.
 
 SetLook2000Sets a flag indicating whether the application GUI elements have Microsoft Office 2000 look and feel.
 
 SetMainButtonColorSets color of main Ribbon button (pearl).
 
 SetMenuFlatLookSets a flag indicating whether the application menu buttons have the flat look.
 
 SetMenuShadowDepthSets the width and height of the menu shadow.
 
 SetShadowHighlightedImageSets a flag that indicates whether to display the shadow when rendering highlighted images.