/** * @file XTPNewToolbarDlg.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(__XTPNEWTOOLBARDLG_H__) # define __XTPNEWTOOLBARDLG_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPCommandBar; # ifdef _XTP_INCLUDE_COMMANDBARS /** * @brief * CXTPNewToolbarDlg is CXTPDialogEx derived class. It used internally in customization sheet. */ class _XTP_EXT_CLASS CXTPNewToolbarDlg : public CXTPDialogEx { public: /** * @brief * Constructs a CXTPNewToolbarDlg object. * @param pParent Points to the objects parent window. * @param pCommandBars Pointer to a CXTPCommandBars object. * @param pCommandBar Pointer to a CXTPCommandBar need to edit. */ CXTPNewToolbarDlg(CWnd* pParent, CXTPCommandBars* pCommandBars, CXTPCommandBar* pCommandBar = NULL); /** * @brief * Call this member to switch the visual theme of the control. * @param nTheme New visual theme. Can be any of the values listed * in the Remarks section. * @details * nTheme can be one of the theme IDs specified by XTPControlTheme. * @see * XTPControlTheme */ void SetTheme(XTPControlTheme theme); private: void SetSuggestedName(); CXTPCommandBar* m_pCommandBar; CXTPCommandBars* m_pCommandBars; CXTPButton m_btnOk; CXTPButton m_btnCancel; CXTPEdit m_edit; COLORREF m_clrText; XTPControlTheme m_theme; CXTPBrush m_brBack; protected: /** @cond */ DECLARE_MESSAGE_MAP() //{{AFX_VIRTUAL(CXTPNewToolbarDlg) virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnInitDialog(); void OnOK(); //}}AFX_VIRTUAL //{{AFX_MSG(CXTPNewToolbarDlg) afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); //}}AFX_MSG /** @endcond */ public: enum { IDD = XTP_IDD_NEWTOOLBAR /**< Dialog identifier */ }; UINT m_nNewID; /**< Toolbar identifier */ CString m_strToolbar; /**< Caption of toolbar */ }; # endif # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPNEWTOOLBARDLG_H__) /** @endcond */