/** * @file SingleWorkspace.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(__SINGLEWORKSPACE_H__) # define __SINGLEWORKSPACE_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CSingleWorkspace is a CWorkspace derived class. internal used. */ class _XTP_EXT_CLASS CXTPTabClientWnd::CSingleWorkspace : public CWnd , public CWorkspace { public: /** * @brief * Destroys a CSingleWorkspace object, handles cleanup and deallocation */ ~CSingleWorkspace(); /** * @brief * Initiates redrawing of the control * @param lpRect The rectangular area of the window that is invalid. * @param bAnimate TRUE to animate changes in bounding rectangle. * @details * Call this member function if you want to initialize redrawing * of the control. The control will be redrawn taking into account * its latest state. */ virtual void RedrawControl(LPCRECT lpRect, BOOL bAnimate); protected: /** * @brief * The framework calls this member function to determine whether a * point is in the bounding rectangle of the specified tool. * @param point Specifies the x- and y coordinate of the cursor. These * coordinates are always relative to the upper-left corner of the window * @param pTI A pointer to a TOOLINFO structure. * @return * If the tooltip control was found, the window control ID. If * the tooltip control was not found, -1. */ INT_PTR OnToolHitTest(CPoint point, TOOLINFO* pTI) const; /** * @brief * This method is called to get window handle of workspace */ virtual CWnd* GetWindow() const; /** @cond */ DECLARE_MESSAGE_MAP() virtual BOOL PreTranslateMessage(MSG* pMsg); BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult); //{{AFX_MSG(CSingleWorkspace) public: afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnPaint(); afx_msg LRESULT OnPrintClient(WPARAM wParam, LPARAM lParam); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnMouseLeave(); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); //}}AFX_MSG /** @endcond */ }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif //#if !defined(__SINGLEWORKSPACE_H__) /** @endcond */