TListBoxData-ListBox transfer buffer

Header File

listbox.h

Description

Used to transfer the contents of a list box.

Public Data Members

TDwordArray* ItemDatas; int SelCount; TIntArray* SelIndices TStringArray* SelStrings; TStringArray* Strings;

Public Constructor and Destructor

TListBoxData(); ~TListBoxData();

Public Member Functions

void AddString(const char *str, bool isSelected = false); void AddStringItem(const char* str, uint32 itemData, bool isSelected = false)); void Clear(); TDwordArray& GetItemDatas(); TIntArray& GetSelIndices(); void GetSelString(char far* buffer, int bufferSize, int index = 0) const; int GetSelStringLength(int index = 0) const; TStringArray& GetStrings(); void ResetSelections(); void Select(int index); void SelectString(const char far* str);