Files
2026-06-01 12:46:52 +02:00

83 lines
3.1 KiB
C++

// XTPTaskPanelToolboxTheme.cpp : implementation of the CXTPTaskPanelToolboxTheme 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 XTPTaskPanelToolboxTheme_h__
#define XTPTaskPanelToolboxTheme_h__
//}}AFX_CODEJOCK_PRIVATE
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//===========================================================================
// Summary:
// The CXTPTaskPanelToolboxTheme class is used to enable a Toolbox style theme.
// See Also:
// CXTPTaskPanel::SetTheme
//===========================================================================
class _XTP_EXT_CLASS CXTPTaskPanelToolboxTheme : public CXTPTaskPanelPaintManagerPlain
{
public:
//-------------------------------------------------------------------------
// Summary:
// Constructs a CXTPTaskPanelToolboxTheme object.
//-------------------------------------------------------------------------
CXTPTaskPanelToolboxTheme();
//-------------------------------------------------------------------------
// Summary:
// This method is called to refresh the visual metrics of task panel.
//-------------------------------------------------------------------------
void RefreshMetrics();
//-----------------------------------------------------------------------
// Summary:
// This method is called to draw the caption of the group.
// Parameters:
// pDC - Pointer to a valid device context
// pGroup - Points to a CXTPTaskPanelGroup object
// bDraw - TRUE to draw; FALSE to retrieve height of caption.
// Returns:
// Height of the caption.
//-----------------------------------------------------------------------
int DrawGroupCaption(CDC* pDC, CXTPTaskPanelGroup* pGroup, BOOL bDraw);
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.
//-----------------------------------------------------------------------
virtual CRect DrawGroupCaptionBackground(CDC* pDC, CXTPTaskPanelGroup* pGroup, CRect rc);
};
#endif // XTPTaskPanelToolboxTheme_h__