/** * @file XTPRibbonBackstageButton.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(__XTPRIBBONBACKSTAGEBUTTON_H__) # define __XTPRIBBONBACKSTAGEBUTTON_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class _XTP_EXT_CLASS CXTPRibbonBackstageButton : public CXTPButton { # ifndef _XTP_ACTIVEX_BUTTON /** @cond */ DECLARE_DYNCREATE(CXTPRibbonBackstageButton) /** @endcond */ # else DECLARE_DYNAMIC(CXTPOleRibbonBackstageButton) # endif public: CXTPRibbonBackstageButton(); virtual ~CXTPRibbonBackstageButton(); using CXTPButton::SetTheme; virtual BOOL SetTheme(XTPControlTheme theme); public: void SetShowShadow(BOOL bShowShadow); BOOL GetShowShadow() const; void ShowShadow(BOOL bShowShadow); void SetTabStyle(BOOL bTabStyle); protected: DECLARE_MESSAGE_MAP() //{{AFX_MSG(CXTPRibbonBackstageButton) afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg LRESULT OnSetKeyboardTip(WPARAM wParam, LPARAM lParam); afx_msg LRESULT OnSetKeyboardTipDrawFlag(WPARAM wParam, LPARAM lParam); //}}AFX_MSG public: BOOL m_bChecked; BOOL m_bShowShadow; BOOL m_bTabStyle; BOOL m_bDrawKeyboardTip; CString m_strKeyboardTip; }; AFX_INLINE void CXTPRibbonBackstageButton::SetShowShadow(BOOL bShowShadow) { m_bShowShadow = bShowShadow; } AFX_INLINE BOOL CXTPRibbonBackstageButton::GetShowShadow() const { return m_bShowShadow; } AFX_INLINE void CXTPRibbonBackstageButton::ShowShadow(BOOL bShowShadow) { SetShowShadow(bShowShadow); } # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPRIBBONBACKSTAGEBUTTON_H__) /** @endcond */