120 lines
4.9 KiB
C++
120 lines
4.9 KiB
C++
// XTPTaskPanelShortcutBarOffice2007Theme.cpp : implementation of the CXTPTaskPanelShortcutBarOffice2007Theme class.
|
|
//
|
|
// This file is a part of the XTREME TASKPANEL MFC class library.
|
|
// (c)1998-2013 Codejock Software, All Rights Reserved.
|
|
//
|
|
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
|
|
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
|
|
// CONSENT OF CODEJOCK SOFTWARE.
|
|
//
|
|
// THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
|
|
// IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
|
|
// YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
|
|
// SINGLE COMPUTER.
|
|
//
|
|
// CONTACT INFORMATION:
|
|
// support@codejock.com
|
|
// http://www.codejock.com
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_CODEJOCK_PRIVATE
|
|
#ifndef XTPTaskPanelShortcutBarOffice2007Theme_h__
|
|
#define XTPTaskPanelShortcutBarOffice2007Theme_h__
|
|
//}}AFX_CODEJOCK_PRIVATE
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
//===========================================================================
|
|
// Summary:
|
|
// CXTPTaskPanelShortcutBarOffice2007Theme is a CXTPTaskPanelShortcutBarOffice2003Theme
|
|
// derived class used to enable an Office 2007 ShortcutBar style theme.
|
|
// See Also:
|
|
// CXTPTaskPanel::SetTheme
|
|
//===========================================================================
|
|
class _XTP_EXT_CLASS CXTPTaskPanelShortcutBarOffice2007Theme : public CXTPTaskPanelShortcutBarOffice2003Theme
|
|
{
|
|
public:
|
|
|
|
//-------------------------------------------------------------------------
|
|
// Summary:
|
|
// Constructs a CXTPTaskPanelShortcutBarOffice2003Theme object.
|
|
//-------------------------------------------------------------------------
|
|
CXTPTaskPanelShortcutBarOffice2007Theme();
|
|
|
|
//-------------------------------------------------------------------------
|
|
// Summary:
|
|
// This method is called to refresh the visual metrics of task panel.
|
|
//-------------------------------------------------------------------------
|
|
void RefreshMetrics();
|
|
|
|
protected:
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This member is called to draw the background of the group caption.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context.
|
|
// pGroup - Fill group caption of this group.
|
|
// rc - Bounding rectangle of the group caption.
|
|
// Returns:
|
|
// Bounding rectangle of text within group caption.
|
|
// Remarks:
|
|
// This member will draw the normal, hot, and pressed background for
|
|
// the group caption. It will then fill the group caption with the
|
|
// Office 2003 color gradient.
|
|
//
|
|
// This task panel theme looks similar to the ShortcutBar Office 2003
|
|
// theme.
|
|
//-----------------------------------------------------------------------
|
|
CRect DrawGroupCaptionBackground(CDC* pDC, CXTPTaskPanelGroup* pGroup, CRect rc);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This method is called to draw the face of the group.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context
|
|
// pGroup - Points to a CXTPTaskPanelGroup object
|
|
// rc - Rectangle of group to be draw.
|
|
//-----------------------------------------------------------------------
|
|
void DrawGroupClientFace(CDC* pDC, CXTPTaskPanelGroup* pGroup, CRect rc);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Fills group rectangle
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context
|
|
// pGroup - Points to a CXTPTaskPanelGroup object
|
|
// rc - Rectangle of group to be draw.
|
|
// See Also: DrawGroupClientFace
|
|
//-----------------------------------------------------------------------
|
|
void FillGroupClientFace(CDC* pDC, CXTPTaskPanelGroup* pGroup, CRect rc);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// This method is called to fill background of task panel control.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context
|
|
// pTaskPanel - Points to a CXTPTaskPanel object
|
|
//-----------------------------------------------------------------------
|
|
void FillTaskPanel(CDC* pDC, CXTPTaskPanel* pTaskPanel);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This member draws a rectangle around a group item when selected,
|
|
// pressed or highlighted.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context
|
|
// pItem - Points to a CXTPTaskPanelGroupItem object.
|
|
// rc - Bounding rectangle group to draw.
|
|
//-----------------------------------------------------------------------
|
|
void DrawGroupItemFrame(CDC* pDC, CXTPTaskPanelGroupItem* pItem, CRect rc);
|
|
|
|
protected:
|
|
COLORREF m_clrShortcutItemShadow; // Dhadow color of items
|
|
BOOL m_bPlainStyle;
|
|
|
|
};
|
|
|
|
#endif // XTPTaskPanelShortcutBarOffice2007Theme_h__
|