/** * @file XTPMarkupTheme.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 */ #if !defined(__XTPMARKUPTHEME_H__) # define __XTPMARKUPTHEME_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPMarkupContext; class CXTPMarkupUIElement; /** * @brief * The CXTPMarkupThemePart class is used to create a theme part * object used for rendering. */ class _XTP_EXT_CLASS CXTPMarkupThemePart { public: /** * @brief * Constructs a CXTPMarkupThemePart object. */ CXTPMarkupThemePart(); /** * @brief * Destructor, handles cleanup and deallocation. */ virtual ~CXTPMarkupThemePart(); /** * @brief * This member function is ca.led to load the theme part. * @param hZip Zip file handle. * @param pszFileName String representing file name. * @param pMarkupContext Points to a CXTPMarkupContext object. * @return * TRUE if successful, otherwise FALSE. */ BOOL LoadPart(HZIP hZip, LPCTSTR pszFileName, CXTPMarkupContext* pMarkupContext); /** * @brief * This member function is called to render the markup theme part. * @param pDC Points to a valid device context. * @param rc Size of area to render. */ void RenderMarkup(CDC* pDC, CRect rc); /** * @brief * Called to determine a theme part's size. * @param cx Theme part width. * @param cy Theme part height. * @return * A CSize object representing the theme part's width and height. */ CSize Measure(int cx, int cy); protected: CXTPMarkupUIElement* m_pMarkupUIElement; /**< Points to a CXTPMarkupUIElement object. */ }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPMARKUPTHEME_H__) /** @endcond */