/** * @file XTPTabClientDraggingContents.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(__XTPTABCLIENTDRAGGINGCONTENTS_H__) # define __XTPTABCLIENTDRAGGINGCONTENTS_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * Managers tab client dragging contents. */ class CXTPTabClientDraggingContents : public CWnd { DECLARE_DYNCREATE(CXTPTabClientDraggingContents); CXTPTabClientDraggingContents(); CXTPTabClientDraggingContents(CXTPTabClientWnd* pTabClientWnd); public: /** * @brief * Performs resource cleanup on object destruction. */ virtual ~CXTPTabClientDraggingContents(); /** * @brief * Create the contents object. * @return * TRUE if the contents object is successfully created, FALSE otherwise. */ BOOL Create(); using CWnd::Create; /** * @brief * Obtains contents height. * @return * Contents height value. * @see * GetWidth */ int GetHeight() const; /** * @brief * Obtains contents width. * @return * Contents width value. * @see * GetHeight */ int GetWidth() const; private: int m_Height; int m_Width; int m_imgHeight; int m_imgWidth; int m_borderX; int m_borderY; /** @cond */ DECLARE_MESSAGE_MAP() //{{AFX_MSG(CXTPDockingPaneContextStickerWnd) afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnPaint(); //}}AFX_MSG /** @endcond */ CXTPTabClientWnd* m_pTarget; CBitmap m_bitmap; }; AFX_INLINE int CXTPTabClientDraggingContents::GetHeight() const { return m_Height; } AFX_INLINE int CXTPTabClientDraggingContents::GetWidth() const { return m_Width; } /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPTABCLIENTDRAGGINGCONTENTS_H__) /** @endcond */