// 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__0A52D7FB_EC1D_4E45_B2B9_A7AC6F440BC3__INCLUDED_) # define AFX_MAINFRM_H__0A52D7FB_EC1D_4E45_B2B9_A7AC6F440BC3__INCLUDED_ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Resource.h" class CCommandBarControlsView; class CMainFrame : public CXTPMDIFrameWnd , CXTPCommandBarsFrameHook { typedef CXTPMDIFrameWnd BaseFrame; DECLARE_DYNCREATE(CMainFrame); // Construction public: CMainFrame(); // Operations public: void EnableTheme(XTPPaintTheme nTheme, LPCTSTR lpzThemeSettings, BOOL bEnable = TRUE); void UpdateTheme(); // Overrides public: virtual ~CMainFrame(); virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo); # ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; # endif // Implementation public: private: void InitThemeDlg(); BOOL CreateToolbars(); BOOL UpdateMenuBar(XTPPaintTheme nTheme); BOOL CreateStatusBar(); void LoadVectorIcons(); void InitTooltips(); void SetTooltipStyle(XTPToolTipStyle nStyle); void SetFrameIcon(CSize szIcon); void UpdateChildrenTheme(); void DisableStyle(); void EnableNoStyle(BOOL bEnable = TRUE); void EnableStyleRibbon(BOOL bEnable = TRUE); void EnableStyleOffice2000(BOOL bEnable = TRUE); void EnableStyleOfficeXP(BOOL bEnable = TRUE); void EnableStyleOffice2003(BOOL bEnable = TRUE); void EnableStyleOffice2007(BOOL bEnable = TRUE); void EnableStyleOffice2007System(BOOL bEnable = TRUE); void EnableStyleOffice2010(BOOL bEnable = TRUE); void EnableStyleOffice2013(BOOL bEnable = TRUE); void EnableStyleOffice2016(BOOL bEnable = TRUE); void EnableStyleVisualStudio6(BOOL bEnable = TRUE); void EnableStyleVisualStudio2005(BOOL bEnable = TRUE); void EnableStyleVisualStudio2008(BOOL bEnable = TRUE); void EnableStyleVisualStudio2010(BOOL bEnable = TRUE); void EnableStyleVisualStudio2015(BOOL bEnable = TRUE); void EnableStyleVisualStudio2017(BOOL bEnable = TRUE); void EnableStyleVisualStudio2019(BOOL bEnable = TRUE); void EnableStyleVisualStudio2022(BOOL bEnable = TRUE); void EnableStyleWindowsXP(BOOL bEnable = TRUE); void EnableStyleWindows7(BOOL bEnable = TRUE); void EnableStyleWindows10(BOOL bEnable = TRUE); void EnableStyleWindows11(BOOL bEnable = TRUE); XTPControlTheme GetCustomizeDialogTheme(); protected: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI); afx_msg int OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl); afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection); afx_msg void OnUpdateEnableMDIWindows(CCmdUI* pCmdUI); afx_msg void OnWindowArrange(); afx_msg void OnWindowCascade(); afx_msg void OnWindowTileHorz(); afx_msg void OnWindowTileVert(); afx_msg void OnCustomize(); afx_msg void OnEmptyCommand(UINT nID); afx_msg void OnUpdateEmptyCommand(CCmdUI* pCmdUI); afx_msg void OnThemeDlg(); afx_msg LRESULT OnThemeChanged(WPARAM wParam, LPARAM lParam); afx_msg void OnOptionsRighttoleft(); afx_msg void OnUpdateOptionsRighttoleft(CCmdUI* pCmdUI); DECLARE_MESSAGE_MAP() // Attributes protected: CThemeDlg m_dlgTheme; BOOL m_bThemeApplied; XTPPaintTheme m_nAppliedTheme; CString m_strAppliedThemeSettings; CXTPStatusBar m_wndStatusBar; CXTPTabClientWnd m_wndTabClient; CXTPMenuTitleBar* m_pMenuTitleBar; CXTPMenuBar* m_pMenuBar; CXTPToolBar* m_pToolBarButtons; CXTPToolBar* m_pToolBarPopups; CXTPToolBar* m_pToolBarCombo; CXTPToolBar* m_pToolBarEdit; CXTPToolBar* m_pToolBarRadio; CXTPToolBar* m_pToolBarCheckBox; CXTPToolBar* m_pToolBarListBox; CXTPToolBar* m_pToolBarGallery; CXTPToolBar* m_pToolBarColor; CXTPToolBar* m_pToolBarSlider; CXTPToolBar* m_pToolBarScrollBar; CXTPToolBar* m_pToolBarProgress; CXTPToolBar* m_pWorkspaceBar; }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MAINFRM_H__0A52D7FB_EC1D_4E45_B2B9_A7AC6F440BC3__INCLUDED_)