次の方法で共有


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.

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. 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::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 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.

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

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

CMFCVisualManagerWindows::CMFCVisualManagerWindows

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

CMFCVisualManagerWindows::DrawComboBorderWinXP

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

CMFCVisualManagerWindows::DrawComboDropButtonWinXP

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

CMFCVisualManagerWindows::DrawPushButtonWinXP

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

CMFCVisualManagerWindows::GetButtonExtraBorder

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

CMFCVisualManagerWindows::GetCaptionButtonExtraBorder

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

CMFCVisualManagerWindows::GetDockingPaneCaptionExtraHeight

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

CMFCVisualManagerWindows::GetHighlightedMenuItemTextColor

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

CMFCVisualManagerWindows::GetPopupMenuGap

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

CMFCVisualManagerWindows::GetToolbarButtonTextColor

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

CMFCVisualManagerWindows::IsDefaultWinXPPopupButton

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

CMFCVisualManagerWindows::IsHighlightWholeMenuItem

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

CMFCVisualManagerWindows::IsOfficeStyleMenus

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

CMFCVisualManagerWindows::IsOfficeXPStyleMenus

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

CMFCVisualManagerWindows::IsWindowsThemingSupported

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

CMFCVisualManagerWindows::IsWinXPThemeAvailable

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.

CMFCVisualManagerWindows::m_b3DTabsXPTheme

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

AFX_IMPORT_DATA static BOOL m_b3DTabsXPTheme;  

CMFCVisualManagerWindows::OnDrawBarGripper

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

CMFCVisualManagerWindows::OnDrawBrowseButton

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

CMFCVisualManagerWindows::OnDrawButtonBorder

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

CMFCVisualManagerWindows::OnDrawButtonSeparator

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

CMFCVisualManagerWindows::OnDrawCaptionButton

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

CMFCVisualManagerWindows::OnDrawCaptionButtonIcon

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

CMFCVisualManagerWindows::OnDrawCheckBoxEx

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

CMFCVisualManagerWindows::OnDrawComboBorder

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

CMFCVisualManagerWindows::OnDrawComboDropButton

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

CMFCVisualManagerWindows::OnDrawControlBorder

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

CMFCVisualManagerWindows::OnDrawEditBorder

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

CMFCVisualManagerWindows::OnDrawExpandingBox

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

CMFCVisualManagerWindows::OnDrawFloatingToolbarBorder

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

CMFCVisualManagerWindows::OnDrawHeaderCtrlBorder

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

CMFCVisualManagerWindows::OnDrawHeaderCtrlSortArrow

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

CMFCVisualManagerWindows::OnDrawMenuBorder

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

CMFCVisualManagerWindows::OnDrawMenuSystemButton

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

CMFCVisualManagerWindows::OnDrawMiniFrameBorder

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

CMFCVisualManagerWindows::OnDrawOutlookPageButtonBorder

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

CMFCVisualManagerWindows::OnDrawPaneBorder

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

CMFCVisualManagerWindows::OnDrawPaneCaption

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

CMFCVisualManagerWindows::OnDrawPopupWindowButtonBorder

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

CMFCVisualManagerWindows::OnDrawScrollButtons

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

CMFCVisualManagerWindows::OnDrawSeparator

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

CMFCVisualManagerWindows::OnDrawSpinButtons

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

CMFCVisualManagerWindows::OnDrawStatusBarPaneBorder

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

CMFCVisualManagerWindows::OnDrawStatusBarProgress

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

CMFCVisualManagerWindows::OnDrawStatusBarSizeBox

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

CMFCVisualManagerWindows::OnDrawTab

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

CMFCVisualManagerWindows::OnDrawTabCloseButton

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

CMFCVisualManagerWindows::OnDrawTabsButtonBorder

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

CMFCVisualManagerWindows::OnDrawTask

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

CMFCVisualManagerWindows::OnDrawTasksGroupAreaBorder

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

CMFCVisualManagerWindows::OnDrawTasksGroupCaption

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

CMFCVisualManagerWindows::OnDrawTearOffCaption

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

CMFCVisualManagerWindows::OnErasePopupWindowButton

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

CMFCVisualManagerWindows::OnEraseTabsArea

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

CMFCVisualManagerWindows::OnEraseTabsButton

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

CMFCVisualManagerWindows::OnEraseTabsFrame

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

CMFCVisualManagerWindows::OnFillBarBackground

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

CMFCVisualManagerWindows::OnFillButtonInterior

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

CMFCVisualManagerWindows::OnFillCommandsListBackground

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

CMFCVisualManagerWindows::OnFillMiniFrameCaption

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

CMFCVisualManagerWindows::OnFillOutlookPageButton

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

CMFCVisualManagerWindows::OnFillTasksGroupInterior

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

CMFCVisualManagerWindows::OnFillTasksPaneBackground

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

CMFCVisualManagerWindows::OnHighlightMenuItem

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

CMFCVisualManagerWindows::OnHighlightRarelyUsedMenuItems

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

CMFCVisualManagerWindows::OnUpdateSystemColors

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

CMFCVisualManagerWindows::SetOfficeStyleMenus

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

See Also

Hierarchy Chart
Classes
CMFCVisualManager Class
CMFCVisualManagerOfficeXP Class