// MainFrm.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_MAINFRM_H__330F58D3_28C1_4AB6_8989_E2B65D6D99B4__INCLUDED_) # define AFX_MAINFRM_H__330F58D3_28C1_4AB6_8989_E2B65D6D99B4__INCLUDED_ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 class CMainFrame : public CXTPFrameWnd , CXTPCommandBarsFrameHook { DECLARE_DYNCREATE(CMainFrame) protected: CMainFrame(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMainFrame) virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //}}AFX_VIRTUAL // Implementation public: virtual ~CMainFrame(); # ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; # endif private: void LoadXAMLIcons(); void EnableTheme(XTPPaintTheme nTheme, LPCTSTR lpzThemeSettings, BOOL bEnable = TRUE); void UpdateTheme(); BOOL CreateRibbonBar(); void CreateRibbonTab_Buttons(); void CreateRibbonTab_Editors(); void CreateRibbonTab_Galleries(); void CreateRibbonTab_Misc(); void CreateRibbonTab_GroupReduction(); void CreateSystemMenuPopup(); void CreateBackstage(); void DestroyBackstage(); BOOL CreateStatusBar(); void CreateGalleries(); void InitTooltips(); void InitThemeDlg(); void SetTooltipStyle(XTPToolTipStyle nStyle); void SetFrameIcon(CSize szIcon); void UpdateChildrenTheme(); void DisableStyle(); void EnableNoStyle(BOOL bEnable = TRUE); void EnableStyleOffice2007(BOOL bEnable = TRUE); void EnableStyleOffice2010(BOOL bEnable = TRUE); void EnableStyleOffice2013(BOOL bEnable = TRUE); void EnableStyleOffice2016(BOOL bEnable = TRUE); void EnableStyleVisualStudio2015(BOOL bEnable = TRUE); void EnableStyleVisualStudio2017(BOOL bEnable = TRUE); void EnableStyleVisualStudio2019(BOOL bEnable = TRUE); void EnableStyleVisualStudio2022(BOOL bEnable = TRUE); void EnableStyleWindows7(BOOL bEnable = TRUE); void EnableStyleWindows10(BOOL bEnable = TRUE); void EnableStyleWindows11(BOOL bEnable = TRUE); enum OptionsPage { xtpOptionsPageGeneral, xtpOptionsPageRibbon, xtpOptionsPageQAT }; void ShowOptionsDialog(OptionsPage nSelectedPage = xtpOptionsPageGeneral); XTPControlTheme GetOptionsDialogTheme(); // Generated message map functions protected: //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI); afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection); afx_msg void OnThemeDlg(); afx_msg LRESULT OnThemeChanged(WPARAM wParam, LPARAM lParam); afx_msg void OnCustomize(); afx_msg void OnCustomizeQuickAccess(); afx_msg int OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl); //}}AFX_MSG DECLARE_MESSAGE_MAP() CThemeDlg m_dlgTheme; BOOL m_bThemeApplied; XTPPaintTheme m_nAppliedTheme; CString m_strAppliedThemeSettings; CXTPRibbonBar* m_pRibbonBar; CXTPRibbonBackstageView* m_pBackstageView; CXTPStatusBar m_wndStatusBar; CXTPControlGalleryItems* m_pItemsShapes; CXTPControlGalleryItems* m_pItemsStyles; CXTPControlGalleryItems* m_pItemsFontTextColor; CXTPControlGalleryItems* m_pItemsFontFace; CXTPControlGalleryItems* m_pItemsTable; public: CXTPRibbonGroup* m_pReductionControls; }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MAINFRM_H__330F58D3_28C1_4AB6_8989_E2B65D6D99B4__INCLUDED_)