/** * @file XTPDatePickerOffice2003Theme.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 * */ #if !defined(_XTPDATEPICKEROFFICE2003THEME_H__) # define _XTPDATEPICKEROFFICE2003THEME_H__ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * Class CXTPDatePickerThemeOffice2003 is derived from CXTPDatePickerPaintManager * for rendering an Office 2003 style for DatePicker control. * * Example: *
 *  if (m_bThemeOffice2003)
 *  {
 *     CXTPDatePickerThemeOffice2003* pTheme2003 = new CXTPDatePickerThemeOffice2003;
 *     m_wndDatePicker.SetTheme(pTheme2003);
 *  }
 *  else
 *  {
 *     m_wndDatePicker.SetTheme(NULL);
 *  }
 * 
* * @see CXTPDatePickerThemeOffice2003 */ class _XTP_EXT_CLASS CXTPDatePickerThemeOffice2003 : public CXTPDatePickerPaintManager { public: /** * @brief * Default paint manager constructor. * * @details Handles initial initialization. * * @see RefreshMetrics() */ CXTPDatePickerThemeOffice2003(); /** * @brief * Default paint manager destructor. * * @details Handles member item deallocation. */ virtual ~CXTPDatePickerThemeOffice2003(); public: /** * @brief * This member function performs initialization for the Paint * Manager. * * @details Initializes all drawing defaults (fonts, colors, etc.). Most of * defaults are system defaults. */ virtual void RefreshMetrics(); /** * @brief * This member function is used to draw the control's buttons. * * @param pDC Pointer to a valid device context. * @param rcButton A CRect that contains the button area bounding * rectangle coordinates. * @param strButton A CString that contains the string of the button's * text. * @param bIsDown A BOOL that determines if the button is down or up. * @param bIsHighLight A BOOL that determines if the button is highlighted. * * @details Use this member function to draw buttons in the appropriate state. * The state depends on the bIsDown parameter, the button may be * drawn pressed or released. Furthermore, depending on the * bIsHighLight, the button may be drawn with highlighted borders. * * Example: *
for (int i = 0; i \< GetButtonCount(); i++)
	 * {
	 * CXTPDatePickerButton* pButton = GetButton(i);
	 * if (pButton-\>m_bVisible)
	 *    DrawButton(pDC, pButton-\>m_rcButton, pButton-\>m_strCaption,
	 *    pButton-\>m_bPressed, pButton-\>m_bHighlight);
	 * }
*/ virtual void DrawButton(CDC* pDC, const CRect& rcButton, const CString& strButton, BOOL bIsDown, BOOL bIsHighLight); }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(_XTPDATEPICKEROFFICE2003THEME_H__)