/** * @file XTPFlowGraphEditItem.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(__XTPFLOWGRAPHEDITITEM_H__) # define __XTPFLOWGRAPHEDITITEM_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * Represents an edit control used to edit captions for elements in * the flow graph. */ class _XTP_EXT_CLASS CXTPFlowGraphEditItem : public CEdit { public: /** * @brief * Constructs a CXTPFlowGraphEditItem object. */ CXTPFlowGraphEditItem(); public: /** * @brief * This member function is called to create the edit control used to * edit the caption of a connection. * @param pElement [in] Parent element to create the edit control for. * @return * TRUE if successful, otherwise FALSE. */ BOOL Create(CXTPFlowGraphElement* pElement); # if _MSC_VER > 1200 using CEdit::Create; using CWnd::Create; # endif /** @cond */ protected: virtual void PostNcDestroy(); protected: afx_msg void OnKillFocus(CWnd* pNewWnd); afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg UINT OnGetDlgCode(); /** * @brief * This member function is used to processes keyboard events. * nChar : A UINT that contains the character code value of the * key. * nRepCnt : A UINT that is used to count the number of times the keystroke * is repeated as a result of the user holding down the * key. * nFlags : A UINT that contains the Scan code, key\-transition * code, previous key state, and the context code. * @details * This method is called by the flow graph when a keystroke occurs * during an edit operation and translates it to a nonsystem * character. */ /** @endcond */ protected: BOOL m_bEscapeKey; /**< TRUE if the escape key was pressed, FALSE otherwise. */ CXTPFlowGraphElement* m_pElement; /**< Parent element to create the edit control for. */ CXTPFont m_xtpFont; /**< Font used in the edit control. */ XTP_SUBSTITUTE_GDI_MEMBER_WITH_CACHED(CFont, m_fnt, m_xtpFont, GetFontHandle); protected: /** @cond */ DECLARE_MESSAGE_MAP() DECLARE_DYNAMIC(CXTPFlowGraphEditItem) /** @endcond */ }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPFLOWGRAPHEDITITEM_H__) /** @endcond */