17 vector<wstring> _selections;
HWND WinHandle
Definition Common.h:16
int getPreferredHeight()
Returns the preferred height.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Retrieves options used for creating the ComboBox window.
void onSelectionChanged(WinHandle hWndCB, int itemIndex, const wstring &itemText, BOOL itemChecked, const ProcParams &procParams)
Handles selection change notifications.
void addSelectionChangedListener(SelectionChangeListener *l)
Registers a listener to be notified when the selected item changes.
wstring getSelectedItem()
Gets the currently selected item in the combo box.
void setSelectedItem(const wstring &text)
Sets the selected item in the combo box.
ComboBox()
Constructs a new ComboBox instance.
void windowCreated()
Called after the ComboBox window is successfully created.
virtual ~ComboBox()
Destroys the ComboBox instance.
void setOptions(const vector< wstring > &selections)
Sets the selectable options in the combo box.
Component()
Constructs a new Component instance.
Definition EventListeners.h:31