/** * @file XTPSkinObjectComboBox.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(__XTPSKINOBJECTCOMBOXBOX__) # define __XTPSKINOBJECTCOMBOXBOX__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPSkinObjectComboBox is a CXTPSkinObjectFrame derived class. * It implements standard comboboxes. */ class _XTP_EXT_CLASS CXTPSkinObjectComboBox : public CXTPSkinObjectFrame { /** @cond */ DECLARE_DYNCREATE(CXTPSkinObjectComboBox) /** @endcond */ public: /** * @brief * Constructs a CXTPSkinObjectComboBox object. */ CXTPSkinObjectComboBox(); /** * @brief * Destroys a CXTPSkinObjectComboBox object, handles cleanup and deallocation. */ virtual ~CXTPSkinObjectComboBox(); /** * @brief * Performs all drawing logic. * @param pDC Pointer to the device context to draw the control image with. */ virtual void OnDraw(CDC* pDC); public: static HWND AFX_CDECL GetComboListBox(HWND hWnd); protected: /** @cond */ DECLARE_MESSAGE_MAP() //{{AFX_VIRTUAL(CXTPSkinObjectButton) virtual int GetClientBrushMessage(); //}}AFX_VIRTUAL //{{AFX_MSG(CXTPSkinObjectButton) afx_msg void OnPaint(); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnSetFocus(CWnd* pOldWnd); afx_msg void OnKillFocus(CWnd* pNewWnd); afx_msg void OnCaptureChanged(CWnd* pWnd); afx_msg void OnMouseLeave(); afx_msg void OnStyleChanged(); afx_msg LRESULT OnPrintClient(WPARAM wParam, LPARAM lParam); //}}AFX_MSG protected: BOOL m_bHot; BOOL m_bPushed; BOOL m_bPaint; /** @endcond */ }; /** * @brief * CXTPSkinObjectDateTime is a CXTPSkinObjectComboBox derived class. * It implements a date time control. */ class _XTP_EXT_CLASS CXTPSkinObjectDateTime : public CXTPSkinObjectComboBox { /** @cond */ DECLARE_DYNCREATE(CXTPSkinObjectDateTime) /** @endcond */ public: /** * @brief * Constructs a CXTPSkinObjectDateTime object. */ CXTPSkinObjectDateTime(); /** * @brief * Gets the size and location of the caption button. * @return * The size and location of the caption button, * or an empty rectangle if no button is defined. */ CRect GetButtonRect(); /** * @brief * This method is called when visual metrics are changed. */ void RefreshMetrics(); protected: /** * @brief * This method is called when the skin is changed. * @param bPrevState TRUE if the previous skin was installed. * @param bNewState TRUE if the current skin is installed. */ void OnSkinChanged(BOOL bPrevState, BOOL bNewState); /** @cond */ DECLARE_MESSAGE_MAP() virtual int GetClientBrushMessage(); int OnCreate(LPCREATESTRUCT lpCreateStruct); void OnDraw(CDC* pDC); void OnLButtonDown(UINT nFlags, CPoint point); void DrawFrame(CDC* pDC); BOOL IsVistaStyle() const; /** @endcond */ }; /** * @brief * CXTPSkinObjectMonthCal is a CXTPSkinObjectFrame derived class. * It implements a month calendar. */ class _XTP_EXT_CLASS CXTPSkinObjectMonthCal : public CXTPSkinObjectFrame { /** @cond */ DECLARE_DYNCREATE(CXTPSkinObjectMonthCal) /** @endcond */ public: /** * @brief * Constructs a CXTPSkinObjectMonthCal object. */ CXTPSkinObjectMonthCal(); /** * @brief * This method is called when visual metrics are changed. */ void RefreshMetrics(); }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPSKINOBJECTCOMBOXBOX__) /** @endcond */