/** * @file XTPTaskPanelExplorerThemePlain.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 XTPTaskPanelExplorerThemePlain_h__ # define XTPTaskPanelExplorerThemePlain_h__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPTaskPanelExplorerThemePlain represents a classic Explorer style theme. * @see * CXTPTaskPanel::SetTheme */ class _XTP_EXT_CLASS CXTPTaskPanelExplorerThemePlain : public CXTPTaskPanelPaintManagerPlain { public: /** * @brief * Constructs a CXTPTaskPanelExplorerThemePlain object. */ CXTPTaskPanelExplorerThemePlain(); /** * @brief * Refreshes the visual metrics of the task panel. */ void RefreshMetrics(); BOOL m_bExplorerTheme; /**< TRUE to use Explorer theme under WinXP and to use Office 2000 under older OSes. */ /** * @brief * Draws the caption gripper. * @param pDC Pointer to a valid device context. * @param pGroup Pointer to a CXTPTaskPanelGroup object. * @param rc Rectangle of the group to be drawn. * @return * The rectangle of the caption after drawing. * @details * The caption gripper is the button that allows the group * to be expanded and collapsed. * * If the current operating system is Windows XP and the current theme is * xtpSystemThemeBlue, xtpSystemThemeOlive, or xtpSystemThemeSilver, then * the gripper bitmap is loaded from the operating system. * * The WinXp gripper is created with * CXTPTaskPanelPaintManager::CreateGripperBitmaps. For all other * operating systems and themes, CXTPTaskPanelPaintManager::CreateGripperIcon * is used to create an emulated version of the Windows XP gripper. * * If m_bExplorerTheme is TRUE, then * CXTPTaskPanelPaintManager::DrawCaptionGripperBitmap is used to * draw the gripper. Therefore, a bitmap is loaded. * * If m_bExplorerTheme is FALSE, then * CXTPTaskPanelPaintManager::DrawCaptionGripper is used to * draw the gripper. Therefore, no bitmap is loaded. * @see * CXTPTaskPanelPaintManager::DrawCaptionGripperBitmap, * CXTPTaskPanelPaintManager::DrawCaptionGripperSigns */ CRect DrawCaptionGripper(CDC* pDC, CXTPTaskPanelGroup* pGroup, CRect rc); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // XTPTaskPanelExplorerThemePlain_h__ /** @endcond */