/** * @file XTPWnd.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(__XTPWND_H__) # define __XTPWND_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPScrollBarCtrl; class _XTP_EXT_CLASS CXTPWnd : public CWnd { /** @cond */ DECLARE_DYNAMIC(CXTPWnd) /** @endcond */ public: /** * @brief * Constructs a CXTPWnd object */ CXTPWnd(); /** * @brief * Destroys a CXTPWnd object, handles cleanup and deallocation. */ virtual ~CXTPWnd(); public: //{{AFX_VIRTUAL(CXTPWnd) virtual CScrollBar* GetScrollBarCtrl(int nBar) const; virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void PreSubclassWindow(); virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); //}}AFX_VIRTUAL DECLARE_MESSAGE_MAP() //{{AFX_MSG(CXTPWnd) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp); //}}AFX_MSG protected: void SetScrollBarTheme(XTPScrollBarTheme theme); BOOL m_bEnableThemedScrollBar; CXTPScrollBarCtrl* m_pwndScrollBar[2]; }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPWND_H__) /** @endcond */