Of course, you are right. I post now the ActiveX.
Maybe you can see here anything for the item list. Thanks in advance.
class CExEditor : public CWnd
{
protected:
DECLARE_DYNCREATE(CExEditor)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xed8b26d2, 0x1855, 0x42d5, { 0xb6, 0x22, 0xfe, 0xe8, 0x53, 0x95, 0xdf, 0xb3 } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey); }
// Attribute
public:
// Operationen
public:
void Images(const VARIANT& Handle);
unsigned long GetBackColor();
void SetBackColor(unsigned long newValue);
unsigned long GetForeColor();
void SetForeColor(unsigned long newValue);
BOOL GetEnabled();
void SetEnabled(BOOL bNewValue);
long GetAppearance();
void SetAppearance(long nNewValue);
void SetFont(LPDISPATCH newValue);
LPDISPATCH GetFont();
void SetRefFont(LPDISPATCH newValue);
BOOL GetReadOnly();
void SetReadOnly(BOOL bNewValue);
long GetHWnd();
VARIANT GetValue();
void SetValue(const VARIANT& newValue);
void SetRefValue(VARIANT* newValue);
long GetEditType();
void SetEditType(long nNewValue);
BOOL GetHasCheckBox();
void SetHasCheckBox(BOOL bNewValue);
long GetCheckState();
void SetCheckState(long nNewValue);
BOOL GetPartialCheck();
void SetPartialCheck(BOOL bNewValue);
CString GetMask();
void SetMask(LPCTSTR lpszNewValue);
long GetMaskChar();
void SetMaskChar(long nNewValue);
long GetPopupAppearance();
void SetPopupAppearance(long nNewValue);
long GetDropDownRows();
void SetDropDownRows(long nNewValue);
long GetAlignment();
void SetAlignment(long nNewValue);
long GetButtonWidth();
void SetButtonWidth(long nNewValue);
void AddButton(const VARIANT& Key, const VARIANT& Image, const VARIANT& Align, const VARIANT& ToolTip, const VARIANT& ToolTipTitle);
void RemoveButton(const VARIANT& Key);
void ClearButtons();
void AddItem(long Value, LPCTSTR Caption, const VARIANT& Image);
void RemoveItem(long Value);
void ClearItems();
void Refresh();
long GetDropDownAlignment();
void SetDropDownAlignment(long nNewValue);
BOOL GetDropDownAutoWidth();
void SetDropDownAutoWidth(BOOL bNewValue);
long GetDropDownMinWidth();
void SetDropDownMinWidth(long nNewValue);
void DropDown();
BOOL GetDropDownVisible();
void SetDropDownVisible(BOOL bNewValue);
BOOL GetShowImageList();
void SetShowImageList(BOOL bNewValue);
CString GetVersion();
void SetVersion(LPCTSTR lpszNewValue);
VARIANT GetFindItem(const VARIANT& Value);
long GetItemCount();
void SortItems(const VARIANT& Ascending, const VARIANT& Reserved);
VARIANT GetItemCaption(const VARIANT& Index);
unsigned long GetSelForeColor();
void SetSelForeColor(unsigned long newValue);
unsigned long GetSelBackColor();
void SetSelBackColor(unsigned long newValue);
long ReplaceIcon(const VARIANT& Icon, const VARIANT& Index);
};