/** * @file XTPCalendarEventColorDlg.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 * */ #if !defined(__XTPCALENDAREVENTCOLORDLG_H__) # define __XTPCALENDAREVENTCOLORDLG_H__ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief This class is used to edit Calendar Event Category and Label * information. */ class _XTP_EXT_CLASS CXTPCalendarEventColorDlg : public CDialog { /** @cond */ DECLARE_DYNAMIC(CXTPCalendarEventColorDlg) /** @endcond */ public: /** * @brief * Constructs a CXTPCalendarEventColorDlg object used to * edit calendar event categories and labels. * * @param bCategories TRUE to edit event category list, FALSE * to edit event labels. * @param pCalendarCtrl Points to a valid CXTPCalendarControl * object. * @param pParent A pointer to the dialog box's parent * or owner window. */ CXTPCalendarEventColorDlg(BOOL bCategories, CXTPCalendarControl* pCalendarCtrl, CWnd* pParent = NULL); protected: /** * @brief * This member function is called to update the diplayed * color for the color picker whenever a listbox * selection changes. * * @param nIndex Index of the listbox item to retrieve color * information from. If LB_ERR, the currently * selected item is used. */ void UpdateSelColor(int nIndex = LB_ERR); BOOL m_bCategories; /**< TRUE when editing event categories. */ CXTPCalendarControl* m_pCalendarCtrl; /**< Pointer to the calendar object. */ CXTPCalendarEventPtr m_pEvent; /**< Pointer to the calendar event object. */ //{{AFX_DATA(CXTPCalendarEventColorDlg) enum { IDD = XTP_IDD_CALENDAR_EVENT_COLOR }; CStatic m_wndEventInfo; CXTPColorPicker m_cpEvent; CXTPCalendarEventColorListBox m_lboxColors; //}}AFX_DATA //{{AFX_VIRTUAL(CXTPCalendarEventColorDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL //{{AFX_MSG(CXTPCalendarEventColorDlg) virtual BOOL OnInitDialog(); afx_msg void OnBtnRename(); afx_msg void OnBtnDelete(); afx_msg void OnBtnNew(); afx_msg void OnSelChangeListCategories(); afx_msg void OnBtnOK(); afx_msg void OnEventReset(); //}}AFX_MSG afx_msg void OnSelEndOkColor(); DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPCALENDAREVENTCOLORDLG_H__)