/** * @file XTPMarkupComboBox.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(__XTPMARKUPCOMBOBOX_H__) && defined(_XTP_INCLUDE_MARKUP) # define __XTPMARKUPCOMBOBOX_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPMarkupUIElement; class CXTPMarkupContext; struct _XTP_EXT_CLASS XTP_MARKUP_COMBOBOXITEM { public: XTP_MARKUP_COMBOBOXITEM(CXTPMarkupContext* pContext); virtual ~XTP_MARKUP_COMBOBOXITEM(); public: void Resolve(LPCTSTR lpszMarkup); CString strMarkup; CXTPMarkupUIElement* pItem; CXTPMarkupContext* pContext; }; class _XTP_EXT_CLASS CXTPMarkupComboBox : public CXTPComboBox , public CXTPMarkupContext { /** @cond */ DECLARE_DYNAMIC(CXTPMarkupComboBox) /** @endcond */ public: /** * @brief * Constructs a CXTPMarkupComboBox object. */ CXTPMarkupComboBox(); /** * @brief * Destroys a CXTPMarkupComboBox object, handles cleanup and deallocation. */ virtual ~CXTPMarkupComboBox(); /** @cond */ //{{AFX_VIRTUAL(CXTPMarkupComboBox) virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct); virtual void DeleteItem(LPDELETEITEMSTRUCT lpDeleteItemStruct); virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult); using CXTPMarkupContext::OnWndMsg; //}}AFX_VIRTUAL public: CXTPMarkupContext* GetMarkupContext() { return this; } void Init(); void AddMarkupString(LPCTSTR lpszMarkup); //{{AFX_MSG(CXTPMarkupComboBox) //}}AFX_MSG DECLARE_MESSAGE_MAP() /** @endcond */ }; ///////////////////////////////////////////////////////////////////////////// # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPMARKUPCOMBOBOX_H__) /** @endcond */