/** * @file XTPCustomizePageMenus.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(__XTPCUSTOMIZEMENUSPAGE_H__) && defined(_XTP_INCLUDE_CONTROLS) # define __XTPCUSTOMIZEMENUSPAGE_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPToolBar; class CXTPCustomizeSheet; /** * @brief * CXTPCustomizeMenusPage is a CPropertyPage derived class. * It represents the Menus page of the Customize dialog. */ class _XTP_EXT_CLASS CXTPCustomizeMenusPage : public CXTPPropertyPage { /** * Construction */ public: /** * @brief * Constructs a CXTPCustomizeMenusPage object * * @param pSheet Points to a CXTPCustomizeSheet object that this page * belongs to. */ CXTPCustomizeMenusPage(CXTPCustomizeSheet* pSheet); /** * @brief * Destroys a CXTPCustomizeMenusPage object, handles cleanup * and deallocation. */ ~CXTPCustomizeMenusPage(); protected: /** * @brief * This method is called to save user changes */ void CommitContextMenu(); /** * Implementation */ protected: /** @cond */ DECLARE_MESSAGE_MAP() //{{AFX_VIRTUAL(CXTPCustomizeMenusPage) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL //{{AFX_MSG(CXTPCustomizeMenusPage) virtual BOOL OnInitDialog(); afx_msg void OnSelectionChangedAppmenus(); afx_msg void OnSelectionChangedContextmenus(); afx_msg void OnDestroy(); afx_msg void OnButtonResetContextMenu(); afx_msg void OnButtonResetAppMenu(); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); //}}AFX_MSG /** @endcond */ // Dialog Data public: /** @cond */ enum { IDD = XTP_IDD_PAGE_MENUS }; /** @endcond */ // {{AFX_DATA(CXTPCustomizeMenusPage) CStatic m_wndIcon; # ifdef _XTP_INCLUDE_CONTROLS COLORREF m_clrText; CXTPComboBox m_cmbContextMenus; CXTPComboBox m_cmbAppMenus; CXTPButton m_btnResetApp; CXTPButton m_btnResetContent; # else CComboBox m_cmbContextMenus; CComboBox m_cmbAppMenus; CButton m_btnResetApp; CButton m_btnResetContent; # endif CXTPGroupLine m_wndApplicationMenus; CXTPGroupLine m_wndContextMenus; // }}AFX_DATA protected: CXTPToolBar* m_pContextMenu; /**< Active context menu*/ CXTPCustomizeSheet* m_pSheet; /**< Parent sheet*/ CPoint m_ptContextMenu; /**< Last position of context menu*/ CString m_strDefaultMenu; /**< Default menu caption*/ CString m_strDefaultMenuDesc; /**< Default menu description*/ }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPCUSTOMIZEMENUSPAGE_H__) /** @endcond */