/** * @file XTPGridHitTestInfo.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(__XTPGRIDHITTESTINFO_H__) # define __XTPGRIDHITTESTINFO_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" // Forward declarations class CXTPGridColumn; class CXTPGridRow; class CXTPGridRecordItem; class CXTPTrackBlock; enum XTPGridHitTestInfoCode { xtpGridHitTestUnknown = 0, xtpGridHitTestHeader = 1, xtpGridHitTestGroupBox = 2, xtpGridHitTestBodyRows = 3, xtpGridHitTestBlock = 4, xtpGridHitTestHeaderRows = 5, xtpGridHitTestFooterRows = 6 }; class _XTP_EXT_CLASS CXTPGridHitTestInfo : public CXTPCmdTarget { /** @cond */ DECLARE_DYNCREATE(CXTPGridHitTestInfo) /** @endcond */ public: CXTPGridHitTestInfo(); virtual ~CXTPGridHitTestInfo(); // Attributes public: XTPGridHitTestInfoCode m_htCode; CXTPGridColumn* m_pColumn; CXTPGridRow* m_pRow; CXTPGridRecordItem* m_pItem; CXTPTrackBlock* m_pBlock; int m_iTrackPosition; # ifdef _XTP_ACTIVEX /** @cond */ public: LPDISPATCH OleGetColumn(); LPDISPATCH OleGetRow(); LPDISPATCH OleGetItem(); LPDISPATCH OleGetBlock(); long OleGetTrackPosition(); long OleGetHt(); protected: DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPGridHitTestInfo); /** @endcond */ # endif }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPGRIDHITTESTINFO_H__) /** @endcond */