Partager via


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

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

See Also

Reference

Hierarchy Chart

CMFCVisualManager Class

CMFCVisualManagerOfficeXP Class

CMFCVisualManager::SetDefaultManager

Other Resources

MFC Classes