/** * @file XTPTaskPanelPaintManagerPlain.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #ifndef XTPTaskPanelPaintManagerPlain_h__ # define XTPTaskPanelPaintManagerPlain_h__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * Base class theme that all other themes are derived from. * Use this class when creating a custom theme. * @see * CXTPTaskPanel::SetTheme, CXTPTaskPanel::SetCustomTheme */ class _XTP_EXT_CLASS CXTPTaskPanelPaintManagerPlain : public CXTPTaskPanelPaintManager { public: /** * @brief * Constructs a CXTPTaskPanelPaintManagerPlain object. */ CXTPTaskPanelPaintManagerPlain(); /** * @brief * Refreshes the visual metrics of the task panel. */ void RefreshMetrics(); /** * @brief * Draws the client face of a specified group. * @param pDC Pointer to a valid device context. * @param pGroup Pointer to the group to draw the client face of. * @param rc Rectangle of the group to draw the client face of. */ void DrawGroupClientFace(CDC* pDC, CXTPTaskPanelGroup* pGroup, CRect rc); /** * @brief * Fills the client face of a specified group. * @param pDC Pointer to a valid device context. * @param pGroup Pointer to the group to fill the client face of. * @param rc Rectangle of the group to fill the client face of. * @see * DrawGroupClientFace */ void FillGroupClientFace(CDC* pDC, CXTPTaskPanelGroup* pGroup, CRect rc); /** * @brief * Fills the background of a specified task panel. * @param pDC Pointer to a valid device context. * @param pTaskPanel Pointer to the task panel to fill. */ void FillTaskPanel(CDC* pDC, CXTPTaskPanel* pTaskPanel); /** * @brief * Draws the caption of a specified group. * @param pDC Pointer to a valid device context. * @param pGroup Pointer to the group to draw the caption of. * @param bDraw TRUE to draw the caption of the specified group, * FALSE to retrieve the height of the caption. * @return * The 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 be 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 rectangle. Default is FALSE. */ }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // XTPTaskPanelPaintManagerPlain_h__ /** @endcond */