ComboBox Control with ListView. More...
#include <SComboView.h>
Public Member Functions | |
SComboView (void) | |
Constructor. | |
~SComboView (void) | |
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 view. | |
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) | |
IListView * | GetIListView () OVERRIDE |
Get the list view interface. | |
SListView * | GetListView () |
Get the list view pointer. | |
Protected Member Functions | |
BOOL | FireEvent (IEvtArgs *evt) OVERRIDE |
Notify event. | |
virtual void | OnScaleChanged (int nScale) |
Handle scale change event. | |
virtual HRESULT | OnLanguageChanged () override |
Handle language change event. | |
virtual BOOL | CreateListBox (SXmlNode xmlNode) |
Create the list view. | |
virtual int | GetListBoxHeight () |
Get the height of the list view. | |
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 | |
SListView * | m_pListBox |
ComboBox Control with ListView.
A ComboBox control that uses a ListView for its dropdown content.
Definition at line 14 of file SComboView.h.
SNSBEGIN SComboView::SComboView | ( | void | ) |
Constructor.
Definition at line 5 of file SComboView.cpp.
SComboView::~SComboView | ( | void | ) |
Destructor.
Definition at line 10 of file SComboView.cpp.
|
protectedvirtual |
Create the list view.
xmlNode | XML node for the list view |
Definition at line 20 of file SComboView.cpp.
|
protected |
Notify event.
evt | Event object |
This function is a message handler.
Definition at line 89 of file SComboView.cpp.
int SComboView::GetCount | ( | ) |
Get the number of items in the list view.
Definition at line 133 of file SComboView.cpp.
int SComboView::GetCurSel | ( | ) |
Get the current selection index.
Definition at line 141 of file SComboView.cpp.
IListView * SComboView::GetIListView | ( | ) |
Get the list view interface.
Definition at line 163 of file SComboView.cpp.
BOOL SComboView::GetItemText | ( | int | iItem, |
BOOL | bRawText, | ||
IStringT * | str ) |
Get the text of a list view item.
iItem | Item index |
bRawText | Whether to get raw text |
str | Output string for the item text |
Definition at line 119 of file SComboView.cpp.
|
inline |
Get the text of a list view item (ANSI version)
iItem | Item index |
bRawText | Whether to get raw text |
str | Output string for the item text |
Definition at line 64 of file SComboView.h.
|
protectedvirtual |
Get the height of the list view.
Definition at line 43 of file SComboView.cpp.
SListView * SComboView::GetListView | ( | ) |
Get the list view pointer.
Definition at line 114 of file SComboView.cpp.
|
protectedvirtual |
Handle creation of the dropdown window.
pDropDown | Dropdown window pointer |
Implements ISDropDownOwner.
Definition at line 56 of file SComboView.cpp.
|
protectedvirtual |
Handle destruction of the dropdown window.
pDropDown | Dropdown window pointer |
Implements ISDropDownOwner.
Definition at line 67 of file SComboView.cpp.
|
overrideprotectedvirtual |
Handle language change event.
Reimplemented from SWindow.
Definition at line 155 of file SComboView.cpp.
|
protectedvirtual |
Handle scale change event.
nScale | Scale factor |
Reimplemented from SWindow.
Definition at line 107 of file SComboView.cpp.
|
protectedvirtual |
Handle selection change in the dropdown window.
Definition at line 75 of file SComboView.cpp.
BOOL SComboView::SetCurSel | ( | int | iSel | ) |
Set the current selection index.
iSel | Index to set as the current selection |
Definition at line 146 of file SComboView.cpp.
|
protected |
Pointer to the list view
Definition at line 138 of file SComboView.h.