CMFCVisualManagerWindows Class

CMFCVisualManagerWindows mimics the appearance of Microsoft Windows XP or Microsoft Vista when the user selects a Windows XP or Vista theme.

For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

Syntax

class CMFCVisualManagerWindows : public CMFCVisualManagerOfficeXP

Members

Public Constructors

Name Description
CMFCVisualManagerWindows::CMFCVisualManagerWindows Default constructor.

Public Methods

Name Description
CMFCVisualManagerWindows::AlwaysHighlight3DTabs The framework calls this method to determine whether 3D tabs should always be highlighted in the application. (Overrides CMFCVisualManager::AlwaysHighlight3DTabs.)
CMFCVisualManagerWindows::DrawComboBorderWinXP (Overrides CMFCVisualManager::DrawComboBorderWinXP.)
CMFCVisualManagerWindows::DrawComboDropButtonWinXP (Overrides CMFCVisualManager::DrawComboDropButtonWinXP.)
CMFCVisualManagerWindows::DrawPushButtonWinXP (Overrides CMFCVisualManager::DrawPushButtonWinXP.)
CMFCVisualManagerWindows::GetButtonExtraBorder The framework calls this method when it draws a toolbar button. (Overrides CMFCVisualManager::GetButtonExtraBorder.)
CMFCVisualManagerWindows::GetCaptionButtonExtraBorder (Overrides CMFCVisualManager::GetCaptionButtonExtraBorder.)
CMFCVisualManagerWindows::GetDockingPaneCaptionExtraHeight (Overrides CMFCVisualManager::GetDockingPaneCaptionExtraHeight.)
CMFCVisualManagerWindows::GetHighlightedMenuItemTextColor (Overrides CMFCVisualManagerOfficeXP::GetHighlightedMenuItemTextColor.)
CMFCVisualManagerWindows::GetPopupMenuGap (Overrides CMFCVisualManagerOfficeXP::GetPopupMenuGap.)
CMFCVisualManagerWindows::GetToolbarButtonTextColor (Overrides CMFCVisualManagerOfficeXP::GetToolbarButtonTextColor.)
CMFCVisualManagerWindows::IsDefaultWinXPPopupButton (Overrides CMFCVisualManager::IsDefaultWinXPPopupButton.)
CMFCVisualManagerWindows::IsHighlightWholeMenuItem (Overrides CMFCVisualManagerOfficeXP::IsHighlightWholeMenuItem.)
CMFCVisualManagerWindows::IsOfficeStyleMenus
CMFCVisualManagerWindows::IsOfficeXPStyleMenus Indicates whether the visual manager implements Office XP-style menus. (Overrides CMFCVisualManager::IsOfficeXPStyleMenus.)
CMFCVisualManagerWindows::IsWindowsThemingSupported (Overrides CMFCVisualManager::IsWindowsThemingSupported.)
CMFCVisualManagerWindows::IsWinXPThemeAvailable Indicates whether a Windows theme is available.
CMFCVisualManagerWindows::OnDrawBarGripper (Overrides CMFCVisualManagerOfficeXP::OnDrawBarGripper.)
CMFCVisualManagerWindows::OnDrawBrowseButton (Overrides CMFCVisualManagerOfficeXP::OnDrawBrowseButton.)
CMFCVisualManagerWindows::OnDrawButtonBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawButtonBorder.)
CMFCVisualManagerWindows::OnDrawButtonSeparator (Overrides CMFCVisualManagerOfficeXP::OnDrawButtonSeparator.)
CMFCVisualManagerWindows::OnDrawCaptionButton (Overrides CMFCVisualManagerOfficeXP::OnDrawCaptionButton.)
CMFCVisualManagerWindows::OnDrawCaptionButtonIcon (Overrides CMFCVisualManagerOfficeXP::OnDrawCaptionButtonIcon.)
CMFCVisualManagerWindows::OnDrawCheckBoxEx (Overrides CMFCVisualManager::OnDrawCheckBoxEx.)
CMFCVisualManagerWindows::OnDrawComboBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawComboBorder.)
CMFCVisualManagerWindows::OnDrawComboDropButton (Overrides CMFCVisualManagerOfficeXP::OnDrawComboDropButton.)
CMFCVisualManagerWindows::OnDrawControlBorder (Overrides CMFCVisualManager::OnDrawControlBorder.)
CMFCVisualManagerWindows::OnDrawEditBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawEditBorder.)
CMFCVisualManagerWindows::OnDrawExpandingBox (Overrides CMFCVisualManager::OnDrawExpandingBox.)
CMFCVisualManagerWindows::OnDrawFloatingToolbarBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawFloatingToolbarBorder.)
CMFCVisualManagerWindows::OnDrawHeaderCtrlBorder The framework calls this method when it draws the border around an instance of the CMFCHeaderCtrl Class. (Overrides CMFCVisualManager::OnDrawHeaderCtrlBorder.)
CMFCVisualManagerWindows::OnDrawHeaderCtrlSortArrow The framework calls this function when it draws the sort arrow of a header control. (Overrides CMFCVisualManager::OnDrawHeaderCtrlSortArrow.)
CMFCVisualManagerWindows::OnDrawMenuBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawMenuBorder.)
CMFCVisualManagerWindows::OnDrawMenuSystemButton (Overrides CMFCVisualManagerOfficeXP::OnDrawMenuSystemButton.)
CMFCVisualManagerWindows::OnDrawMiniFrameBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawMiniFrameBorder.)
CMFCVisualManagerWindows::OnDrawOutlookPageButtonBorder Called by the framework when it draws the border of an Outlook page button. (Overrides CMFCVisualManager::OnDrawOutlookPageButtonBorder.)
CMFCVisualManagerWindows::OnDrawPaneBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawPaneBorder.)
CMFCVisualManagerWindows::OnDrawPaneCaption (Overrides CMFCVisualManagerOfficeXP::OnDrawPaneCaption.)
CMFCVisualManagerWindows::OnDrawPopupWindowButtonBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawPopupWindowButtonBorder.)
CMFCVisualManagerWindows::OnDrawScrollButtons (Overrides CMFCVisualManagerOfficeXP::OnDrawScrollButtons.)
CMFCVisualManagerWindows::OnDrawSeparator (Overrides CMFCVisualManagerOfficeXP::OnDrawSeparator.)
CMFCVisualManagerWindows::OnDrawSpinButtons (Overrides CMFCVisualManagerOfficeXP::OnDrawSpinButtons.)
CMFCVisualManagerWindows::OnDrawStatusBarPaneBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawStatusBarPaneBorder.)
CMFCVisualManagerWindows::OnDrawStatusBarProgress The framework calls this method when it draws the progress indicator on the CMFCStatusBar object. (Overrides CMFCVisualManager::OnDrawStatusBarProgress.)
CMFCVisualManagerWindows::OnDrawStatusBarSizeBox The framework calls this method when it draws the size box for a CMFCStatusBar. (Overrides CMFCVisualManager::OnDrawStatusBarSizeBox.)
CMFCVisualManagerWindows::OnDrawTab (Overrides CMFCVisualManagerOfficeXP::OnDrawTab.)
CMFCVisualManagerWindows::OnDrawTabCloseButton (Overrides CMFCVisualManagerOfficeXP::OnDrawTabCloseButton.)
CMFCVisualManagerWindows::OnDrawTabsButtonBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawTabsButtonBorder.)
CMFCVisualManagerWindows::OnDrawTask (Overrides CMFCVisualManagerOfficeXP::OnDrawTask.)
CMFCVisualManagerWindows::OnDrawTasksGroupAreaBorder (Overrides CMFCVisualManagerOfficeXP::OnDrawTasksGroupAreaBorder.)
CMFCVisualManagerWindows::OnDrawTasksGroupCaption (Overrides CMFCVisualManagerOfficeXP::OnDrawTasksGroupCaption.)
CMFCVisualManagerWindows::OnDrawTearOffCaption (Overrides CMFCVisualManagerOfficeXP::OnDrawTearOffCaption.)
CMFCVisualManagerWindows::OnErasePopupWindowButton (Overrides CMFCVisualManagerOfficeXP::OnErasePopupWindowButton.)
CMFCVisualManagerWindows::OnEraseTabsArea (Overrides CMFCVisualManagerOfficeXP::OnEraseTabsArea.)
CMFCVisualManagerWindows::OnEraseTabsButton (Overrides CMFCVisualManagerOfficeXP::OnEraseTabsButton.)
CMFCVisualManagerWindows::OnEraseTabsFrame The framework calls this method when it erases a frame on a CMFCBaseTabCtrl Class. (Overrides CMFCVisualManager::OnEraseTabsFrame.)
CMFCVisualManagerWindows::OnFillBarBackground (Overrides CMFCVisualManagerOfficeXP::OnFillBarBackground.)
CMFCVisualManagerWindows::OnFillButtonInterior (Overrides CMFCVisualManagerOfficeXP::OnFillButtonInterior.)
CMFCVisualManagerWindows::OnFillCommandsListBackground (Overrides CMFCVisualManagerOfficeXP::OnFillCommandsListBackground.)
CMFCVisualManagerWindows::OnFillMiniFrameCaption (Overrides CMFCVisualManagerOfficeXP::OnFillMiniFrameCaption.)
CMFCVisualManagerWindows::OnFillOutlookPageButton The framework calls this method when it fills the interior of an Outlook page button. (Overrides CMFCVisualManager::OnFillOutlookPageButton.)
CMFCVisualManagerWindows::OnFillTasksGroupInterior (Overrides CMFCVisualManagerOfficeXP::OnFillTasksGroupInterior.)
CMFCVisualManagerWindows::OnFillTasksPaneBackground The framework calls this method when it fills the background of a CMFCTasksPane control. (Overrides CMFCVisualManager::OnFillTasksPaneBackground.)
CMFCVisualManagerWindows::OnHighlightMenuItem (Overrides CMFCVisualManagerOfficeXP::OnHighlightMenuItem.)
CMFCVisualManagerWindows::OnHighlightRarelyUsedMenuItems (Overrides CMFCVisualManagerOfficeXP::OnHighlightRarelyUsedMenuItems.)
CMFCVisualManagerWindows::OnUpdateSystemColors (Overrides CMFCVisualManagerOfficeXP::OnUpdateSystemColors.)
CMFCVisualManagerWindows::SetOfficeStyleMenus

Data Members

Name Description
CMFCVisualManagerWindows::m_b3DTabsXPTheme Specifies whether the Windows XP theme displays 3D tabs.

Remarks

Use the CMFCVisualManagerWindows class to change the appearance of your application to mimic the current theme on the computer where the application runs.

However, a Windows theme might be unavailable if your application is running on a version of Windows earlier than Windows XP or if themes are disabled because the user is using the Classic view. If no theme is available, the application uses the default visual manager defined in CMFCVisualManager.

Example

The following example demonstrates how to use CMFCVisualManagerWindows. This code snippet is part of the Desktop Alert Demo sample.

CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));

Inheritance Hierarchy

CObject

CMFCBaseVisualManager

CMFCVisualManager

CMFCVisualManagerOfficeXP

CMFCVisualManagerWindows

Requirements

Header: afxvisualmanagerwindows.h

CMFCVisualManagerWindows::AlwaysHighlight3DTabs

virtual BOOL AlwaysHighlight3DTabs() const;

Return Value

Remarks

CMFCVisualManagerWindows::CMFCVisualManagerWindows

CMFCVisualManagerWindows(BOOL bIsTemporary = FALSE);

Parameters

[in] bIsTemporary

Remarks

CMFCVisualManagerWindows::DrawComboBorderWinXP

virtual BOOL DrawComboBorderWinXP(
    CDC* pDC,
    CRect rect,
    BOOL bDisabled,
    BOOL bIsDropped,
    BOOL bIsHighlighted);

Parameters

[in] pDC
[in] rect
[in] bDisabled
[in] bIsDropped
[in] bIsHighlighted

Return Value

Remarks

CMFCVisualManagerWindows::DrawComboDropButtonWinXP

virtual BOOL DrawComboDropButtonWinXP(
    CDC* pDC,
    CRect rect,
    BOOL bDisabled,
    BOOL bIsDropped,
    BOOL bIsHighlighted);

Parameters

[in] pDC
[in] rect
[in] bDisabled
[in] bIsDropped
[in] bIsHighlighted

Return Value

Remarks

CMFCVisualManagerWindows::DrawPushButtonWinXP

virtual BOOL DrawPushButtonWinXP(
    CDC* pDC,
    CRect rect,
    CMFCButton* pButton,
    UINT uiState);

Parameters

[in] pDC
[in] rect
[in] pButton
[in] uiState

Return Value

Remarks

CMFCVisualManagerWindows::GetButtonExtraBorder

virtual CSize GetButtonExtraBorder() const;

Return Value

Remarks

CMFCVisualManagerWindows::GetCaptionButtonExtraBorder

virtual CSize GetCaptionButtonExtraBorder() const;

Return Value

Remarks

CMFCVisualManagerWindows::GetDockingPaneCaptionExtraHeight

virtual int GetDockingPaneCaptionExtraHeight() const;

Return Value

Remarks

CMFCVisualManagerWindows::GetHighlightedMenuItemTextColor

virtual COLORREF GetHighlightedMenuItemTextColor(CMFCToolBarMenuButton* pButton);

Parameters

[in] pButton

Return Value

Remarks

CMFCVisualManagerWindows::GetPopupMenuGap

virtual int GetPopupMenuGap() const;

Return Value

Remarks

CMFCVisualManagerWindows::GetToolbarButtonTextColor

virtual COLORREF GetToolbarButtonTextColor(
    CMFCToolBarButton* pButton,
    CMFCVisualManager::AFX_BUTTON_STATE state);

Parameters

[in] pButton
[in] state

Return Value

Remarks

CMFCVisualManagerWindows::IsDefaultWinXPPopupButton

virtual BOOL IsDefaultWinXPPopupButton(CMFCDesktopAlertWndButton* pButton) const;

Parameters

[in] pButton

Return Value

Remarks

CMFCVisualManagerWindows::IsHighlightWholeMenuItem

virtual BOOL IsHighlightWholeMenuItem();

Return Value

Remarks

CMFCVisualManagerWindows::IsOfficeStyleMenus

BOOL IsOfficeStyleMenus() const;

Return Value

Remarks

CMFCVisualManagerWindows::IsOfficeXPStyleMenus

virtual BOOL IsOfficeXPStyleMenus() const;

Return Value

Remarks

CMFCVisualManagerWindows::IsWindowsThemingSupported

virtual BOOL IsWindowsThemingSupported() const;

Return Value

Remarks

CMFCVisualManagerWindows::IsWinXPThemeAvailable

Determines whether a Windows theme is available.

static BOOL IsWinXPThemeAvailible();

Return Value

Nonzero if a theme is available; otherwise 0.

Remarks

This method is valid for all Windows XP and later themes.

IsWinXPThemeAvailable is identical to CMFCVisualManagerWindows::IsWindowsThemingAvailable except that IsWinXPThemeAvailable is a static method. Therefore, it will create a temporary visual manager if one does not exist.

IsWinXPThemeAvailable always return 0s for versions of Windows earlier than Windows XP.

CMFCVisualManagerWindows::m_b3DTabsXPTheme

A Boolean parameter that determines whether the visual manager displays 3D tabs.

AFX_IMPORT_DATA static BOOL m_b3DTabsXPTheme;

CMFCVisualManagerWindows::OnDrawBarGripper

virtual void OnDrawBarGripper(
    CDC* pDC,
    CRect rectGripper,
    BOOL bHorz,
    CBasePane* pBar);

Parameters

[in] pDC
[in] rectGripper
[in] bHorz
[in] pBar

Remarks

CMFCVisualManagerWindows::OnDrawBrowseButton

virtual BOOL OnDrawBrowseButton(
    CDC* pDC,
    CRect rect,
    CMFCEditBrowseCtrl* pEdit,
    CMFCVisualManager::AFX_BUTTON_STATE state,
    COLORREF& clrText);

Parameters

[in] pDC
[in] rect
[in] pEdit
[in] state
[in] clrText

Return Value

Remarks

CMFCVisualManagerWindows::OnDrawButtonBorder

virtual void OnDrawButtonBorder(
    CDC* pDC,
    CMFCToolBarButton* pButton,
    CRect rect,
    CMFCVisualManager::AFX_BUTTON_STATE state);

Parameters

[in] pDC
[in] pButton
[in] rect
[in] state

Remarks

CMFCVisualManagerWindows::OnDrawButtonSeparator

virtual void OnDrawButtonSeparator(
    CDC* pDC,
    CMFCToolBarButton* pButton,
    CRect rect,
    CMFCVisualManager::AFX_BUTTON_STATE state,
    BOOL bHorz);

Parameters

[in] pDC
[in] pButton
[in] rect
[in] state
[in] bHorz

Remarks

CMFCVisualManagerWindows::OnDrawCaptionButton

virtual void OnDrawCaptionButton(
    CDC* pDC,
    CMFCCaptionButton* pButton,
    BOOL bActive,
    BOOL bHorz,
    BOOL bMaximized,
    BOOL bDisabled,
    int nImageID = -1);

Parameters

[in] pDC
[in] pButton
[in] bActive
[in] bHorz
[in] bMaximized
[in] bDisabled
[in] nImageID

Remarks

CMFCVisualManagerWindows::OnDrawCaptionButtonIcon

virtual void OnDrawCaptionButtonIcon(
    CDC* pDC,
    CMFCCaptionButton* pButton,
    CMenuImages::IMAGES_IDS id,
    BOOL bActive,
    BOOL bDisabled,
    CPoint ptImage);

Parameters

[in] pDC
[in] pButton
[in] id
[in] bActive
[in] bDisabled
[in] ptImage

Remarks

CMFCVisualManagerWindows::OnDrawCheckBoxEx

virtual void OnDrawCheckBoxEx(
    CDC* pDC,
    CRect rect,
    int nState,
    BOOL bHighlighted,
    BOOL bPressed,
    BOOL bEnabled);

Parameters

[in] pDC
[in] rect
[in] nState
[in] bHighlighted
[in] bPressed
[in] bEnabled

Remarks

CMFCVisualManagerWindows::OnDrawComboBorder

virtual void OnDrawComboBorder(
    CDC* pDC,
    CRect rect,
    BOOL bDisabled,
    BOOL bIsDropped,
    BOOL bIsHighlighted,
    CMFCToolBarComboBoxButton* pButton);

Parameters

[in] pDC
[in] rect
[in] bDisabled
[in] bIsDropped
[in] bIsHighlighted
[in] pButton

Remarks

CMFCVisualManagerWindows::OnDrawComboDropButton

virtual void OnDrawComboDropButton(
    CDC* pDC,
    CRect rect,
    BOOL bDisabled,
    BOOL bIsDropped,
    BOOL bIsHighlighted,
    CMFCToolBarComboBoxButton* pButton);

Parameters

[in] pDC
[in] rect
[in] bDisabled
[in] bIsDropped
[in] bIsHighlighted
[in] pButton

Remarks

CMFCVisualManagerWindows::OnDrawControlBorder

virtual void OnDrawControlBorder(CWnd* pWndCtrl);

Parameters

[in] pWndCtrl

Remarks

CMFCVisualManagerWindows::OnDrawEditBorder

virtual void OnDrawEditBorder(
    CDC* pDC,
    CRect rect,
    BOOL bDisabled,
    BOOL bIsHighlighted,
    CMFCToolBarEditBoxButton* pButton);

Parameters

[in] pDC
[in] rect
[in] bDisabled
[in] bIsHighlighted
[in] pButton

Remarks

CMFCVisualManagerWindows::OnDrawExpandingBox

virtual void OnDrawExpandingBox(
    CDC* pDC,
    CRect rect,
    BOOL bIsOpened,
    COLORREF colorBox);

Parameters

[in] pDC
[in] rect
[in] bIsOpened
[in] colorBox

Remarks

CMFCVisualManagerWindows::OnDrawFloatingToolbarBorder

virtual void OnDrawFloatingToolbarBorder(
    CDC* pDC,
    CMFCBaseToolBar* pToolBar,
    CRect rectBorder,
    CRect rectBorderSize);

Parameters

[in] pDC
[in] pToolBar
[in] rectBorder
[in] rectBorderSize

Remarks

CMFCVisualManagerWindows::OnDrawHeaderCtrlBorder

virtual void OnDrawHeaderCtrlBorder(
    CMFCHeaderCtrl* pCtrl,
    CDC* pDC,
    CRect& rect,
    BOOL bIsPressed,
    BOOL bIsHighlighted);

Parameters

[in] pCtrl
[in] pDC
[in] rect
[in] bIsPressed
[in] bIsHighlighted

Remarks

CMFCVisualManagerWindows::OnDrawHeaderCtrlSortArrow

virtual void OnDrawHeaderCtrlSortArrow(
    CMFCHeaderCtrl* pCtrl,
    CDC* pDC,
    CRect& rect,
    BOOL bIsUp);

Parameters

[in] pCtrl
[in] pDC
[in] rect
[in] bIsUp

Remarks

CMFCVisualManagerWindows::OnDrawMenuBorder

virtual void OnDrawMenuBorder(
    CDC* pDC,
    CMFCPopu* pMenu,
    CRect rect);

Parameters

[in] pDC
[in] pMenu
[in] rect

Remarks

CMFCVisualManagerWindows::OnDrawMenuSystemButton

virtual void OnDrawMenuSystemButton(
    CDC* pDC,
    CRect rect,
    UINT uiSystemCommand,
    UINT nStyle,
    BOOL bHighlight);

Parameters

[in] pDC
[in] rect
[in] uiSystemCommand
[in] nStyle
[in] bHighlight

Remarks

CMFCVisualManagerWindows::OnDrawMiniFrameBorder

virtual void OnDrawMiniFrameBorder(
    CDC* pDC,
    CPaneFrameWnd* pFrameWnd,
    CRect rectBorder,
    CRect rectBorderSize);

Parameters

[in] pDC
[in] pFrameWnd
[in] rectBorder
[in] rectBorderSize

Remarks

CMFCVisualManagerWindows::OnDrawOutlookPageButtonBorder

virtual void OnDrawOutlookPageButtonBorder(
    CDC* pDC,
    CRect& rectBtn,
    BOOL bIsHighlighted,
    BOOL bIsPressed);

Parameters

[in] pDC
[in] rectBtn
[in] bIsHighlighted
[in] bIsPressed

Remarks

CMFCVisualManagerWindows::OnDrawPaneBorder

virtual void OnDrawPaneBorder(
    CDC* pDC,
    CBasePane* pBar,
    CRect& rect);

Parameters

[in] pDC
[in] pBar
[in] rect

Remarks

CMFCVisualManagerWindows::OnDrawPaneCaption

virtual COLORREF OnDrawPaneCaption(
    CDC* pDC,
    CDockablePane* pBar,
    BOOL bActive,
    CRect rectCaption,
    CRect rectButtons);

Parameters

[in] pDC
[in] pBar
[in] bActive
[in] rectCaption
[in] rectButtons

Return Value

Remarks

CMFCVisualManagerWindows::OnDrawPopupWindowButtonBorder

virtual void OnDrawPopupWindowButtonBorder(
    CDC* pDC,
    CRect rectClient,
    CMFCDesktopAlertWndButton* pButton);

Parameters

[in] pDC
[in] rectClient
[in] pButton

Remarks

CMFCVisualManagerWindows::OnDrawScrollButtons

virtual void OnDrawScrollButtons(
    CDC* pDC,
    const CRect& rect,
    const int nBorderSize,
    int iImage,
    BOOL bHilited);

Parameters

[in] pDC
[in] rect
[in] nBorderSize
[in] iImage
[in] bHilited

Remarks

CMFCVisualManagerWindows::OnDrawSeparator

virtual void OnDrawSeparator(
    CDC* pDC,
    CBasePane* pBar,
    CRect rect,
    BOOL bIsHoriz);

Parameters

[in] pDC
[in] pBar
[in] rect
[in] bIsHoriz

Remarks

CMFCVisualManagerWindows::OnDrawSpinButtons

virtual void OnDrawSpinButtons(
    CDC* pDC,
    CRect rectSpin,
    int nState,
    BOOL bOrientation,
    CMFCSpinButtonCtrl* pSpinCtrl);

Parameters

[in] pDC
[in] rectSpin
[in] nState
[in] bOrientation
[in] pSpinCtrl

Remarks

CMFCVisualManagerWindows::OnDrawStatusBarPaneBorder

virtual void OnDrawStatusBarPaneBorder(
    CDC* pDC,
    CMFCStatusBar* pBar,
    CRect rectPane,
    UINT uiID,
    UINT nStyle);

Parameters

[in] pDC
[in] pBar
[in] rectPane
[in] uiID
[in] nStyle

Remarks

CMFCVisualManagerWindows::OnDrawStatusBarProgress

virtual void OnDrawStatusBarProgress(
    CDC* pDC,
    CMFCStatusBar* pStatusBar,
    CRect rectProgress,
    int nProgressTotal,
    int nProgressCurr,
    COLORREF clrBar,
    COLORREF clrProgressBarDest,
    COLORREF clrProgressText,
    BOOL bProgressText);

Parameters

[in] pDC
[in] pStatusBar
[in] rectProgress
[in] nProgressTotal
[in] nProgressCurr
[in] clrBar
[in] clrProgressBarDest
[in] clrProgressText
[in] bProgressText

Remarks

CMFCVisualManagerWindows::OnDrawStatusBarSizeBox

virtual void OnDrawStatusBarSizeBox(
    CDC* pDC,
    CMFCStatusBar* pStatBar,
    CRect rectSizeBox);

Parameters

[in] pDC
[in] pStatBar
[in] rectSizeBox

Remarks

CMFCVisualManagerWindows::OnDrawTab

virtual void OnDrawTab(
    CDC* pDC,
    CRect rectTab,
    int iTab,
    BOOL bIsActive,
    const CMFCBaseTabCtrl* pTabWnd);

Parameters

[in] pDC
[in] rectTab
[in] iTab
[in] bIsActive
[in] pTabWnd

Remarks

CMFCVisualManagerWindows::OnDrawTabCloseButton

virtual void OnDrawTabCloseButton(
    CDC* pDC,
    CRect rect,
    const CMFCBaseTabCtrl* pTabWnd,
    BOOL bIsHighlighted,
    BOOL bIsPressed,
    BOOL bIsDisabled);

Parameters

[in] pDC
[in] rect
[in] pTabWnd
[in] bIsHighlighted
[in] bIsPressed
[in] bIsDisabled

Remarks

CMFCVisualManagerWindows::OnDrawTabsButtonBorder

virtual void OnDrawTabsButtonBorder(
    CDC* pDC,
    CRect& rect,
    CMFCButton* pButton,
    UINT uiState,
    CMFCBaseTabCtrl* pWndTab);

Parameters

[in] pDC
[in] rect
[in] pButton
[in] uiState
[in] pWndTab

Remarks

CMFCVisualManagerWindows::OnDrawTask

virtual void OnDrawTask(
    CDC* pDC,
    CMFCTasksPaneTask* pTask,
    CImageList* pIcons,
    BOOL bIsHighlighted = FALSE,
    BOOL bIsSelected = FALSE);

Parameters

[in] pDC
[in] pTask
[in] pIcons
[in] bIsHighlighted
[in] bIsSelected

Remarks

CMFCVisualManagerWindows::OnDrawTasksGroupAreaBorder

virtual void OnDrawTasksGroupAreaBorder(
    CDC* pDC,
    CRect rect,
    BOOL bSpecial = FALSE,
    BOOL bNoTitle = FALSE);

Parameters

[in] pDC
[in] rect
[in] bSpecial
[in] bNoTitle

Remarks

CMFCVisualManagerWindows::OnDrawTasksGroupCaption

virtual void OnDrawTasksGroupCaption(
    CDC* pDC,
    CMFCTasksPaneTaskGroup* pGroup,
    BOOL bIsHighlighted = FALSE,
    BOOL bIsSelected = FALSE,
    BOOL bCanCollapse = FALSE);

Parameters

[in] pDC
[in] pGroup
[in] bIsHighlighted
[in] bIsSelected
[in] bCanCollapse

Remarks

CMFCVisualManagerWindows::OnDrawTearOffCaption

virtual void OnDrawTearOffCaption(
    CDC* pDC,
    CRect rect,
    BOOL bIsActive);

Parameters

[in] pDC
[in] rect
[in] bIsActive

Remarks

CMFCVisualManagerWindows::OnErasePopupWindowButton

virtual void OnErasePopupWindowButton(
    CDC* pDC,
    CRect rectClient,
    CMFCDesktopAlertWndButton* pButton);

Parameters

[in] pDC
[in] rectClient
[in] pButton

Remarks

CMFCVisualManagerWindows::OnEraseTabsArea

virtual void OnEraseTabsArea(
    CDC* pDC,
    CRect rect,
    const CMFCBaseTabCtrl* pTabWnd);

Parameters

[in] pDC
[in] rect
[in] pTabWnd

Remarks

CMFCVisualManagerWindows::OnEraseTabsButton

virtual void OnEraseTabsButton(
    CDC* pDC,
    CRect rect,
    CMFCButton* pButton,
    CMFCBaseTabCtrl* pWndTab);

Parameters

[in] pDC
[in] rect
[in] pButton
[in] pWndTab

Remarks

CMFCVisualManagerWindows::OnEraseTabsFrame

virtual BOOL OnEraseTabsFrame(
    CDC* pDC,
    CRect rect,
    const CMFCBaseTabCtrl* pTabWnd);

Parameters

[in] pDC
[in] rect
[in] pTabWnd

Return Value

Remarks

CMFCVisualManagerWindows::OnFillBarBackground

virtual void OnFillBarBackground(
    CDC* pDC,
    CBasePane* pBar,
    CRect rectClient,
    CRect rectClip,
    BOOL bNCArea = FALSE);

Parameters

[in] pDC
[in] pBar
[in] rectClient
[in] rectClip
[in] bNCArea

Remarks

CMFCVisualManagerWindows::OnFillButtonInterior

virtual void OnFillButtonInterior(
    CDC* pDC,
    CMFCToolBarButton* pButton,
    CRect rect,
    CMFCVisualManager::AFX_BUTTON_STATE state);

Parameters

[in] pDC
[in] pButton
[in] rect
[in] state

Remarks

CMFCVisualManagerWindows::OnFillCommandsListBackground

virtual COLORREF OnFillCommandsListBackground(
    CDC* pDC,
    CRect rect,
    BOOL bIsSelected = FALSE);

Parameters

[in] pDC
[in] rect
[in] bIsSelected

Return Value

Remarks

CMFCVisualManagerWindows::OnFillMiniFrameCaption

virtual COLORREF OnFillMiniFrameCaption(
    CDC* pDC,
    CRect rectCaption,
    CPaneFrameWnd* pFrameWnd,
    BOOL bActive);

Parameters

[in] pDC
[in] rectCaption
[in] pFrameWnd
[in] bActive

Return Value

Remarks

CMFCVisualManagerWindows::OnFillOutlookPageButton

virtual void OnFillOutlookPageButton(
    CDC* pDC,
    const CRect& rect,
    BOOL bIsHighlighted,
    BOOL bIsPressed,
    COLORREF& clrText);

Parameters

[in] pDC
[in] rect
[in] bIsHighlighted
[in] bIsPressed
[in] clrText

Remarks

CMFCVisualManagerWindows::OnFillTasksGroupInterior

virtual void OnFillTasksGroupInterior(
    CDC* pDC,
    CRect rect,
    BOOL bSpecial = FALSE);

Parameters

[in] pDC
[in] rect
[in] bSpecial

Remarks

CMFCVisualManagerWindows::OnFillTasksPaneBackground

virtual void OnFillTasksPaneBackground(
    CDC* pDC,
    CRect rectWorkArea);

Parameters

[in] pDC
[in] rectWorkArea

Remarks

CMFCVisualManagerWindows::OnHighlightMenuItem

virtual void OnHighlightMenuItem(
    CDC* pDC,
    CMFCToolBarMenuButton* pButton,
    CRect rect,
    COLORREF& clrText);

Parameters

[in] pDC
[in] pButton
[in] rect
[in] clrText

Remarks

CMFCVisualManagerWindows::OnHighlightRarelyUsedMenuItems

virtual void OnHighlightRarelyUsedMenuItems(
    CDC* pDC,
    CRect rectRarelyUsed);

Parameters

[in] pDC
[in] rectRarelyUsed

Remarks

CMFCVisualManagerWindows::OnUpdateSystemColors

virtual void OnUpdateSystemColors();

Remarks

CMFCVisualManagerWindows::SetOfficeStyleMenus

void SetOfficeStyleMenus(BOOL bOn = TRUE);

Parameters

[in] bOn

Remarks

See also

Hierarchy Chart
Classes
CMFCVisualManager Class
CMFCVisualManagerOfficeXP Class