1#ifndef __SCOMBOVIEW__H__
2#define __SCOMBOVIEW__H__
14class SOUI_EXP
SComboView :
public TComboBaseProxy<IComboView> {
15 DEF_SOBJECT(SComboBase, L
"comboview")
34 STDMETHOD_(BOOL,
SetCurSel)(
int iSel) OVERRIDE;
40 STDMETHOD_(
int,
GetCurSel)() SCONST OVERRIDE;
46 STDMETHOD_(
int,
GetCount)() SCONST OVERRIDE;
55 STDMETHOD_(BOOL,
GetItemText)(
int iItem, BOOL bRawText, IStringT *str) SCONST OVERRIDE;
64 STDMETHOD_(BOOL,
GetItemTextA)(
int iItem, BOOL bRawText, IStringA *str) SCONST OVERRIDE
68 SStringA strBufA = S_CT2A(strBuf, CP_UTF8);
77 STDMETHOD_(IListView *, GetIListView)(THIS) OVERRIDE;
84 SListView *GetListView();
93 STDMETHOD_(BOOL, FireEvent)(THIS_ IEvtArgs *evt) OVERRIDE;
99 virtual void OnScaleChanged(
int nScale);
105 virtual HRESULT OnLanguageChanged()
override;
112 virtual BOOL CreateListBox(
SXmlNode xmlNode);
118 virtual int GetListBoxHeight();
130 virtual void OnDestroyDropDown(
SDropDownWnd *pDropDown);
135 virtual void OnSelChanged();
BOOL GetItemText(int iItem, BOOL bRawText, IStringT *str) SCONST OVERRIDE
Get the text of a list view item.
BOOL GetItemTextA(int iItem, BOOL bRawText, IStringA *str) SCONST OVERRIDE
Get the text of a list view item (ANSI version)
BOOL SetCurSel(int iSel) OVERRIDE
Set the current selection index.
int GetCount() SCONST OVERRIDE
Get the number of items in the list view.
int GetCurSel() SCONST OVERRIDE
Get the current selection index.
SComboView(void)
Constructor.
A class representing an ASCII string.
Class representing an XML node.