// RibbonResourceView.h // // (c)1998-2025 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN // CONSENT OF CODEJOCK SOFTWARE. // // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A // SINGLE COMPUTER. // // CONTACT INFORMATION: // support@codejock.com // http://www.codejock.com // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_RIBBONRESOURCEVIEW_H__19FCF03D_2F7A_4F06_B2FA_DD2F8BF25F24__INCLUDED_) # define AFX_RIBBONRESOURCEVIEW_H__19FCF03D_2F7A_4F06_B2FA_DD2F8BF25F24__INCLUDED_ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "BackstagePageInfo.h" # include "BackstagePageHelp.h" class CMainFrame; ///////////////////////////////////////////////////////////////////////////// // CRibbonResourceFrame frame class CRibbonResourceFrame : public CXTPFrameWnd { public: CRibbonResourceFrame(CMainFrame* pOwnerView); // protected constructor used by dynamic creation DECLARE_DYNAMIC(CRibbonResourceFrame) // Attributes public: // Operations public: CMainFrame* m_pOwnerView; CXTPCommandBars* m_pCommandBars; CXTPRibbonBar* m_pRibbonBar; CXTPStatusBar m_wndStatusBar; CBackstagePageInfo m_pageInfo; CBackstagePageHelp m_pageHelp; void UpdateCommandBars(XTPPaintTheme paintTheme); void SetTheme(int nTheme, int nThemeColor); void SetBackstageTheme(); void CreateBackstage(); void CreateSystemMenuPopup(); // Implementation protected: virtual ~CRibbonResourceFrame(); // Generated message map functions //{{AFX_MSG(CRibbonResourceFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg int OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // CRibbonResourceView view class CRibbonResourceView : public CView { protected: CRibbonResourceView(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(CRibbonResourceView) // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CRibbonResourceView) protected: virtual void OnDraw(CDC* pDC); // overridden to draw this view //}}AFX_VIRTUAL // Implementation protected: virtual ~CRibbonResourceView(); # ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; # endif // Generated message map functions protected: //{{AFX_MSG(CRibbonResourceView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); //}}AFX_MSG bool m_val; void OnEmptyCommand(UINT); void OnEmptyCommand(); BOOL m_bOption[3]; void OnOption(UINT nID); void OnUpdateOption(CCmdUI* pCmdUI); DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_RIBBONRESOURCEVIEW_H__19FCF03D_2F7A_4F06_B2FA_DD2F8BF25F24__INCLUDED_)