Editable ComboBox Control. More...
#include <SComboBox.h>
Public Member Functions | |
| SComboBox () | |
| Constructor. | |
| virtual | ~SComboBox () |
| Destructor. | |
| BOOL | SetCurSel (int iSel) OVERRIDE |
| Set the current selection index. | |
| int | GetCurSel () SCONST OVERRIDE |
| Get the current selection index. | |
| int | GetCount () SCONST OVERRIDE |
| Get the number of items in the list box. | |
| LPARAM | GetItemData (UINT iItem) SCONST OVERRIDE |
| Get the data associated with a list box item. | |
| BOOL | SetItemData (UINT iItem, LPARAM lParam) OVERRIDE |
| Set the data associated with a list box item. | |
| int | InsertItem (int iPos, LPCTSTR pszText, int iIcon, LPARAM lParam) OVERRIDE |
| Insert an item into the list box. | |
| int | InsertItemA (int iPos, LPCSTR pszText, int iIcon, LPARAM lParam) OVERRIDE |
| Insert an item into the list box (ANSI version) | |
| BOOL | DeleteString (int iPos) OVERRIDE |
| Delete a string from the list box. | |
| void | ResetContent () OVERRIDE |
| Reset the content of the list box. | |
| BOOL | GetItemText (int iItem, BOOL bRawText, IStringT *str) SCONST OVERRIDE |
| Get the text of a list box item. | |
| BOOL | GetItemTextA (int iItem, BOOL bRawText, IStringA *str) SCONST OVERRIDE |
| Get the text of a list box item (ANSI version) | |
| IListBox * | GetIListBox () OVERRIDE |
| Get the list box interface. | |
| SListBox * | GetListBox () |
| Get the list box pointer. | |
Protected Member Functions | |
| BOOL | FireEvent (IEvtArgs *evt) OVERRIDE |
| Notify event. | |
| virtual void | OnScaleChanged (int nScale) |
| Handle scale change event. | |
| virtual HRESULT | OnLanguageChanged () |
| Handle language change event. | |
| virtual BOOL | CreateListBox (SXmlNode xmlNode) |
| Create the list box. | |
| virtual int | GetListBoxHeight () |
| Get the height of the list box. | |
| virtual void | OnCreateDropDown (SDropDownWnd *pDropDown) |
| Handle creation of the dropdown window. | |
| virtual void | OnDestroyDropDown (SDropDownWnd *pDropDown) |
| Handle destruction of the dropdown window. | |
| virtual void | OnSelChanged () |
| Handle selection change in the dropdown window. | |
Protected Attributes | |
| SListBox * | m_pListBox |
Editable ComboBox Control.
A ComboBox control that can be editable and includes a dropdown list.
Definition at line 15 of file SComboBox.h.
| SNSBEGIN SComboBox::SComboBox | ( | ) |
Constructor.
Definition at line 7 of file SComboBox.cpp.
|
virtual |
Destructor.
Definition at line 12 of file SComboBox.cpp.
|
protectedvirtual |
Create the list box.
| xmlNode | XML node for the list box |
Definition at line 22 of file SComboBox.cpp.
| BOOL SComboBox::DeleteString | ( | int | iPos | ) |
Delete a string from the list box.
| iPos | Index of the item to delete |
Definition at line 187 of file SComboBox.cpp.
|
protected |
Notify event.
| evt | Event object |
This function is a message handler.
Definition at line 115 of file SComboBox.cpp.
| int SComboBox::GetCount | ( | ) |
Get the number of items in the list box.
Definition at line 167 of file SComboBox.cpp.
| int SComboBox::GetCurSel | ( | ) |
Get the current selection index.
Definition at line 162 of file SComboBox.cpp.
| IListBox * SComboBox::GetIListBox | ( | ) |
Get the list box interface.
Definition at line 208 of file SComboBox.cpp.
| LPARAM SComboBox::GetItemData | ( | UINT | iItem | ) |
Get the data associated with a list box item.
| iItem | Item index |
Definition at line 172 of file SComboBox.cpp.
| BOOL SComboBox::GetItemText | ( | int | iItem, |
| BOOL | bRawText, | ||
| IStringT * | str ) |
Get the text of a list box item.
| iItem | Item index |
| bRawText | Whether to get raw text |
| str | Output string for the item text |
Definition at line 198 of file SComboBox.cpp.
|
inline |
Get the text of a list box item (ANSI version)
| iItem | Item index |
| bRawText | Whether to get raw text |
| str | Output string for the item text |
Definition at line 116 of file SComboBox.h.
|
inline |
Get the list box pointer.
Definition at line 136 of file SComboBox.h.
|
protectedvirtual |
Get the height of the list box.
Definition at line 68 of file SComboBox.cpp.
| int SComboBox::InsertItem | ( | int | iPos, |
| LPCTSTR | pszText, | ||
| int | iIcon, | ||
| LPARAM | lParam ) |
Insert an item into the list box.
| iPos | Position to insert the item |
| pszText | Text of the item |
| iIcon | Icon index for the item |
| lParam | Data to associate with the item |
Definition at line 182 of file SComboBox.cpp.
|
inline |
Insert an item into the list box (ANSI version)
| iPos | Position to insert the item |
| pszText | Text of the item |
| iIcon | Icon index for the item |
| lParam | Data to associate with the item |
Definition at line 82 of file SComboBox.h.
|
protectedvirtual |
Handle creation of the dropdown window.
| pDropDown | Dropdown window pointer |
Implements ISDropDownOwner.
Definition at line 80 of file SComboBox.cpp.
|
protectedvirtual |
Handle destruction of the dropdown window.
| pDropDown | Dropdown window pointer |
Implements ISDropDownOwner.
Definition at line 93 of file SComboBox.cpp.
|
protectedvirtual |
Handle language change event.
Reimplemented from SWindow.
Definition at line 140 of file SComboBox.cpp.
|
protectedvirtual |
Handle scale change event.
| nScale | Scale factor |
Reimplemented from SWindow.
Definition at line 133 of file SComboBox.cpp.
|
protectedvirtual |
Handle selection change in the dropdown window.
Definition at line 101 of file SComboBox.cpp.
| void SComboBox::ResetContent | ( | ) |
Reset the content of the list box.
Definition at line 192 of file SComboBox.cpp.
| BOOL SComboBox::SetCurSel | ( | int | iSel | ) |
Set the current selection index.
| iSel | Index to set as the current selection |
Definition at line 148 of file SComboBox.cpp.
| BOOL SComboBox::SetItemData | ( | UINT | iItem, |
| LPARAM | lParam ) |
Set the data associated with a list box item.
| iItem | Item index |
| lParam | Data to associate with the item |
Definition at line 177 of file SComboBox.cpp.
|
protected |
Pointer to the list box
Definition at line 193 of file SComboBox.h.