/** * @file XTPCommandBarKeyboardTip.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(__XTPCOMMANDBARKEYBOARDTIP_H__) # define __XTPCOMMANDBARKEYBOARDTIP_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPCommandBars; /** * @brief * CXTPCommandBarKeyboardTip is a CWnd derived class which * represents a keyboard tip single window. */ class _XTP_EXT_CLASS CXTPCommandBarKeyboardTip : public CWnd { public: /** * @brief * Constructs a CXTPCommandBarKeyboardTip object. * @param pCommandBars CXTPCommandBars parent object. * @param pOwner Owner object. * @param lpszCaption Caption of control. * @param pt Client coordinates. * @param dwAlign Align of tip. * @param bEnabled TRUE if keyboard tip is enabled. */ CXTPCommandBarKeyboardTip(CXTPCommandBars* pCommandBars, CCmdTarget* pOwner, LPCTSTR lpszCaption, CPoint pt, DWORD dwAlign, BOOL bEnabled); protected: /** @cond */ DECLARE_MESSAGE_MAP() afx_msg void OnPaint(); afx_msg LRESULT OnNcHitTest(CPoint point); /** @endcond */ public: CString m_strTip; /**< Tooltip */ CString m_strCaption; /**< Caption */ CString m_strPrefix; /**< Caption */ CCmdTarget* m_pOwner; /**< Owner object */ CPoint m_pt; /**< Client coordinates */ BOOL m_bEnabled; /**< Enabled flag */ BOOL m_bVisible; /**< TRUE if visible */ CXTPCommandBars* m_pCommandBars; /**< Parent CXTPCommandBars object */ DWORD m_dwAlign; /**< Tip align */ BOOL m_bExplicit; /**< TRUE when user specify manually KeyTip; FALSE if calculated automatically */ }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPCOMMANDBARKEYBOARDTIP_H__) /** @endcond */