CMFCVisualManagerWindows Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CMFCVisualManagerWindows Class.

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

class CMFCVisualManagerWindows : public CMFCVisualManagerOfficeXP  

Public Constructors

NameDescription
CMFCVisualManagerWindows::CMFCVisualManagerWindowsDefault constructor.

Public Methods

NameDescription
CMFCVisualManagerWindows::AlwaysHighlight3DTabsThe 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::GetButtonExtraBorderThe 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::IsOfficeXPStyleMenusIndicates whether the visual manager implements Office XP-style menus. (Overrides CMFCVisualManager::IsOfficeXPStyleMenus.)
CMFCVisualManagerWindows::IsWindowsThemingSupported(Overrides CMFCVisualManager::IsWindowsThemingSupported.)
CMFCVisualManagerWindows::IsWinXPThemeAvailableIndicates whether a Windows theme is available. A theme can be either a Windows XP theme or a Windows Vista theme.
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::OnDrawHeaderCtrlBorderThe framework calls this method when it draws the border around an instance of the CMFCHeaderCtrl Class. (Overrides CMFCVisualManager::OnDrawHeaderCtrlBorder.)
CMFCVisualManagerWindows::OnDrawHeaderCtrlSortArrowThe 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::OnDrawOutlookPageButtonBorderCalled 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::OnDrawStatusBarProgressThe framework calls this method when it draws the progress indicator on the CMFCStatusBar object. (Overrides CMFCVisualManager::OnDrawStatusBarProgress.)
CMFCVisualManagerWindows::OnDrawStatusBarSizeBoxThe 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::OnEraseTabsFrameThe 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::OnFillOutlookPageButtonThe framework calls this method when it fills the interior of an Outlook page button. (Overrides CMFCVisualManager::OnFillOutlookPageButton.)
CMFCVisualManagerWindows::OnFillTasksGroupInterior(Overrides CMFCVisualManagerOfficeXP::OnFillTasksGroupInterior.)
CMFCVisualManagerWindows::OnFillTasksPaneBackgroundThe 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

NameDescription
CMFCVisualManagerWindows::m_b3DTabsXPThemeSpecifies whether the Windows XP theme displays 3D tabs.

Use the CMFCVisualManagerWindows class to change the appearance of your application to mimic the current Windows XP or Windows Vista 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.

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

		CMFCVisualManager::SetDefaultManager (RUNTIME_CLASS (CMFCVisualManagerWindows));

CObject

CMFCBaseVisualManager

CMFCVisualManager

CMFCVisualManagerOfficeXP

CMFCVisualManagerWindows

Header: afxvisualmanagerwindows.h

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual BOOL AlwaysHighlight3DTabs() const;  

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

CMFCVisualManagerWindows(BOOL bIsTemporary = FALSE);

Parameters

[in] bIsTemporary

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual CSize GetButtonExtraBorder() const;  

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual CSize GetCaptionButtonExtraBorder() const;  

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual int GetDockingPaneCaptionExtraHeight() const;  

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual COLORREF GetHighlightedMenuItemTextColor(CMFCToolBarMenuButton* pButton);

Parameters

[in] pButton

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual int GetPopupMenuGap() const;  

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

[in] pButton
[in] state

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual BOOL IsDefaultWinXPPopupButton(CMFCDesktopAlertWndButton* pButton) const;  

Parameters

[in] pButton

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual BOOL IsHighlightWholeMenuItem();

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

BOOL IsOfficeStyleMenus() const;  

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual BOOL IsOfficeXPStyleMenus() const;  

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual BOOL IsWindowsThemingSupported() const;  

Return Value

Remarks

Determines whether a Windows XP or Windows Vista theme is available.

static BOOL IsWinXPThemeAvailible();

Return Value

Nonzero if a theme is available; otherwise 0.

Remarks

This method is valid for both Windows XP and Windows Vista 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.

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

AFX_IMPORT_DATA static BOOL m_b3DTabsXPTheme;  

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual void OnDrawControlBorder(CWnd* pWndCtrl);

Parameters

[in] pWndCtrl

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

[in] pDC
[in] rectWorkArea

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

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

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

[in] pDC
[in] rectRarelyUsed

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual void OnUpdateSystemColors();

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

void SetOfficeStyleMenus(BOOL bOn = TRUE);

Parameters

[in] bOn

Remarks

Hierarchy Chart
Classes
CMFCVisualManager Class
CMFCVisualManagerOfficeXP Class

Show: