Compartilhar via


CMFCBaseVisualManager Class

A layer between derived visual managers and the Windows Theme API.

CMFCBaseVisualManager loads UxTheme.dll, if available, and manages access to Windows Theme API methods.

This class is for internal use only.

class CMFCBaseVisualManager: public CObject

Members

Public Constructors

Name

Description

CMFCBaseVisualManager::CMFCBaseVisualManager

Constructs and initializes a CMFCBaseVisualManager object.

CMFCBaseVisualManager::~CMFCBaseVisualManager

Destructor.

Public Methods

Name

Description

CMFCBaseVisualManager::DrawCheckBox

Draws a check box control by using the current Windows theme.

CMFCBaseVisualManager::DrawComboBorder

Draws a combo box border using the current Windows theme.

CMFCBaseVisualManager::DrawComboDropButton

Draws a combo box drop-down button using the current Windows theme.

CMFCBaseVisualManager::DrawPushButton

Draws a push button using the current Windows theme.

CMFCBaseVisualManager::DrawRadioButton

Draws a radio button control by using the current Windows theme.

CMFCBaseVisualManager::DrawStatusBarProgress

Draws a progress bar on a status bar control (CMFCStatusBar Class) using the current Windows theme.

CMFCBaseVisualManager::FillReBarPane

Fills the background of the rebar control by using the current Windows theme.

CMFCBaseVisualManager::GetStandardWindowsTheme

Gets the current Windows theme.

Protected Methods

Name

Description

CMFCBaseVisualManager::CleanUpThemes

Calls CloseThemeData for all handles obtained in UpdateSystemColors.

CMFCBaseVisualManager::UpdateSystemColors

Calls OpenThemeData to obtain handles for drawing various controls: windows, toolbars, buttons, and so on.

Remarks

You do not have to instantiate objects of this class directly.

Because it is a base class for all visual managers, you can just call CMFCVisualManager::GetInstance, obtain a pointer to the current Visual Manager, and access the methods for CMFCBaseVisualManager using that pointer. However, if you have to display a control by using the current Windows theme, it is better to use the CMFCVisualManagerWindows interface.

Inheritance Hierarchy

CObject

   CMFCBaseVisualManager

Requirements

Header: afxvisualmanager.h

See Also

Reference

Hierarchy Chart

Other Resources

MFC Classes