Editare

Partajați prin


CMFCVisualManagerVS2005 Class

CMFCVisualManagerVS2005 gives an application a Microsoft Visual Studio 2005 appearance.

Syntax

class CMFCVisualManagerVS2005 : public CMFCVisualManagerOffice2003

Members

Public Methods

Name Description
CMFCVisualManagerVS2005::GetDockingTabsBordersSize The framework calls this method when it draws a pane that is docked and tabbed. (Overrides CMFCVisualManager::GetDockingTabsBordersSize.)
CMFCVisualManagerVS2005::GetMDITabsBordersSize The framework calls this method to determine the border size of an MDITabs window before it draws the window. (Overrides CMFCVisualManager::GetMDITabsBordersSize.)
CMFCVisualManagerVS2005::GetPropertyGridGroupColor (Overrides CMFCVisualManagerOffice2003::GetPropertyGridGroupColor.)
CMFCVisualManagerVS2005::GetTabFrameColors (Overrides CMFCVisualManagerOffice2003::GetTabFrameColors.)
CMFCVisualManagerVS2005::HasOverlappedAutoHideButtons Returns whether auto-hide buttons overlap in the current visual manager. (Overrides CMFCVisualManager::HasOverlappedAutoHideButtons.)
CMFCVisualManagerVS2005::OnDrawAutoHideButtonBorder (Overrides CMFCVisualManagerOffice2003::OnDrawAutoHideButtonBorder.)
CMFCVisualManagerVS2005::OnDrawCaptionButton (Overrides CMFCVisualManagerOfficeXP::OnDrawCaptionButton.)
CMFCVisualManagerVS2005::OnDrawPaneCaption (Overrides CMFCVisualManagerOffice2003::OnDrawPaneCaption.)
CMFCVisualManagerVS2005::OnDrawSeparator (Overrides CMFCVisualManagerOffice2003::OnDrawSeparator.)
CMFCVisualManagerVS2005::OnDrawTab (Overrides CMFCVisualManagerOffice2003::OnDrawTab.)
CMFCVisualManagerVS2005::OnDrawToolBoxFrame (Overrides CMFCVisualManager::OnDrawToolBoxFrame.)
CMFCVisualManagerVS2005::OnEraseTabsArea (Overrides CMFCVisualManagerOffice2003::OnEraseTabsArea.)
CMFCVisualManagerVS2005::OnFillAutoHideButtonBackground (Overrides CMFCVisualManagerOffice2003::OnFillAutoHideButtonBackground.)
CMFCVisualManagerVS2005::OnFillHighlightedArea (Overrides CMFCVisualManagerOffice2003::OnFillHighlightedArea.)
CMFCVisualManagerVS2005::OnFillMiniFrameCaption (Overrides CMFCVisualManagerOfficeXP::OnFillMiniFrameCaption.)
CMFCVisualManagerVS2005::OnUpdateSystemColors (Overrides CMFCVisualManagerOffice2003::OnUpdateSystemColors.)

Remarks

You use the CMFCVisualManagerVS2005 class to change the visual appearance of your application to resemble that of the Microsoft Visual Studio 2005.

All of the members of this class are virtual functions that are derived from the ancestor of this class, CMFCVisualManager Class.

Example

The following example demonstrates how to use the visual manager VS 2005. This code snippet is part of the Desktop Alert Demo sample.

CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerVS2005));

Inheritance Hierarchy

CObject

CMFCBaseVisualManager

CMFCVisualManager

CMFCVisualManagerOfficeXP

CMFCVisualManagerOffice2003

CMFCVisualManagerVS2005

Requirements

Header: afxvisualmanagervs2005.h

CMFCVisualManagerVS2005::GetDockingTabsBordersSize

virtual int GetDockingTabsBordersSize();

Return Value

Remarks

CMFCVisualManagerVS2005::GetMDITabsBordersSize

virtual int GetMDITabsBordersSize();

Return Value

Remarks

CMFCVisualManagerVS2005::GetPropertyGridGroupColor

virtual COLORREF GetPropertyGridGroupColor(CMFCPropertyGridCtrl* pPropList);

Parameters

[in] pPropList

Return Value

Remarks

CMFCVisualManagerVS2005::GetTabFrameColors

virtual void GetTabFrameColors(
    const CMFCBaseTabCtrl* pTabWnd,
    COLORREF& clrDark,
    COLORREF& clrBlack,
    COLORREF& clrHighlight,
    COLORREF& clrFace,
    COLORREF& clrDarkShadow,
    COLORREF& clrLight,
    CBrush*& pbrFace,
    CBrush*& pbrBlack);

Parameters

[in] pTabWnd
[in] clrDark
[in] clrBlack
[in] clrHighlight
[in] clrFace
[in] clrDarkShadow
[in] clrLight
[in] pbrFace
[in] pbrBlack

Remarks

CMFCVisualManagerVS2005::HasOverlappedAutoHideButtons

virtual BOOL HasOverlappedAutoHideButtons() const;

Return Value

Remarks

CMFCVisualManagerVS2005::OnDrawAutoHideButtonBorder

virtual void OnDrawAutoHideButtonBorder(
    CDC* pDC,
    CRect rectBounds,
    CRect rectBorderSize,
    CMFCAutoHideButton* pButton);

Parameters

[in] pDC
[in] rectBounds
[in] rectBorderSize
[in] pButton

Remarks

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

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

CMFCVisualManagerVS2005::OnDrawSeparator

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

Parameters

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

Remarks

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

CMFCVisualManagerVS2005::OnDrawToolBoxFrame

virtual void OnDrawToolBoxFrame(
    CDC* pDC,
    const CRect& rect);

Parameters

[in] pDC
[in] rect

Remarks

CMFCVisualManagerVS2005::OnEraseTabsArea

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

Parameters

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

Remarks

CMFCVisualManagerVS2005::OnFillAutoHideButtonBackground

virtual void OnFillAutoHideButtonBackground(
    CDC* pDC,
    CRect rect,
    CMFCAutoHideButton* pButton);

Parameters

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

Remarks

CMFCVisualManagerVS2005::OnFillHighlightedArea

virtual void OnFillHighlightedArea(
    CDC* pDC,
    CRect rect,
    CBrush* pBrush,
    CMFCToolBarButton* pButton);

Parameters

[in] pDC
[in] rect
[in] pBrush
[in] pButton

Remarks

CMFCVisualManagerVS2005::OnFillMiniFrameCaption

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

Parameters

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

Return Value

Remarks

CMFCVisualManagerVS2005::OnUpdateSystemColors

virtual void OnUpdateSystemColors();

Remarks

See also

Hierarchy Chart
Classes
CMFCVisualManager Class
CMFCVisualManagerOfficeXP Class
CMFCVisualManagerWindows Class
CMFCVisualManagerOffice2003 Class