// XTPTaskPanelPaintManagerPlain.h : implementation of the CXTPTaskPanelPaintManagerPlain 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 XTPTaskPanelPaintManagerPlain_h__ #define XTPTaskPanelPaintManagerPlain_h__ //}}AFX_CODEJOCK_PRIVATE #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 //=========================================================================== // Summary: // Base class theme that all other themes are derived from. Use this // class when creating a custom theme. // See Also: // CXTPTaskPanel::SetTheme, CXTPTaskPanel::SetCustomTheme //=========================================================================== class _XTP_EXT_CLASS CXTPTaskPanelPaintManagerPlain : public CXTPTaskPanelPaintManager { public: //------------------------------------------------------------------------- // Summary: // Constructs a CXTPTaskPanelPaintManagerPlain object. //------------------------------------------------------------------------- CXTPTaskPanelPaintManagerPlain(); //------------------------------------------------------------------------- // Summary: // This method is called to refresh the visual metrics of task panel. //------------------------------------------------------------------------- void RefreshMetrics(); //----------------------------------------------------------------------- // 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); //----------------------------------------------------------------------- // Summary: // 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 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: BOOL m_bRoundedFrame; // TRUE to draw a rounded frame around all of the groups in the task panel. Can bee seen in the Native WinXP theme. Default is TRUE. BOOL m_bOfficeCaption; // FALSE to draw a rounded rectangle around caption. TRUE to not draw a rectangle around caption, caption will not appear in a rectrangle. Default is FALSE. }; #endif // XTPTaskPanelPaintManagerPlain_h__