OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TComboBoxExData Class Reference

#include <owl/combobex.h>

Public Member Functions

 TComboBoxExData ()
 
 ~TComboBoxExData ()
 
int AddItem (const TComboBoxExItem &item)
 
int DeleteItem (int index)
 
TComboBoxExItemGetItem (int index)
 
void Clear ()
 
uint Size ()
 
void Select (int index)
 Selects an item at a given index.
 
void SelectString (LPCTSTR str)
 Selects "str", marking the matching String entry (if any) as selected.
 
void SelectString (const tstring &str)
 
tstringGetSelection ()
 
const tstringGetSelection () const
 
int GetSelIndex () const
 
int GetSelCount () const
 
void ResetSelections ()
 
int GetSelStringLength () const
 Returns the length of the selection string excluding the terminating 0.
 
void GetSelString (TCHAR *buffer, int bufferSize) const
 Copies the selected string into Buffer. BufferSize includes the terminating 0.
 
const tstringGetSelString () const
 

Protected Attributes

TComboBoxExItemArrayItems
 
tstring Selection
 
int SelIndex
 

Detailed Description

Definition at line 162 of file combobex.h.

Constructor & Destructor Documentation

◆ TComboBoxExData()

owl::TComboBoxExData::TComboBoxExData ( )

Definition at line 380 of file combobex.cpp.

References Items.

◆ ~TComboBoxExData()

owl::TComboBoxExData::~TComboBoxExData ( )

Definition at line 391 of file combobex.cpp.

References Items.

Member Function Documentation

◆ AddItem()

int owl::TComboBoxExData::AddItem ( const TComboBoxExItem & item)

Definition at line 409 of file combobex.cpp.

References Items.

◆ Clear()

void owl::TComboBoxExData::Clear ( )

Definition at line 428 of file combobex.cpp.

References Items.

◆ DeleteItem()

int owl::TComboBoxExData::DeleteItem ( int index)

Definition at line 400 of file combobex.cpp.

References Items.

◆ GetItem()

TComboBoxExItem & owl::TComboBoxExData::GetItem ( int index)

Definition at line 418 of file combobex.cpp.

References Items, and PRECONDITION.

◆ GetSelCount()

int owl::TComboBoxExData::GetSelCount ( ) const
inline

Definition at line 302 of file combobex.h.

References SelIndex.

◆ GetSelection() [1/2]

tstring & owl::TComboBoxExData::GetSelection ( )
inline

Definition at line 293 of file combobex.h.

References Selection.

◆ GetSelection() [2/2]

const tstring & owl::TComboBoxExData::GetSelection ( ) const
inline

Definition at line 297 of file combobex.h.

References Selection.

◆ GetSelIndex()

int owl::TComboBoxExData::GetSelIndex ( ) const
inline

Definition at line 288 of file combobex.h.

References SelIndex.

◆ GetSelString() [1/2]

const tstring & owl::TComboBoxExData::GetSelString ( ) const
inline

Definition at line 185 of file combobex.h.

◆ GetSelString() [2/2]

void owl::TComboBoxExData::GetSelString ( TCHAR * buffer,
int bufferSize ) const

Copies the selected string into Buffer. BufferSize includes the terminating 0.

Definition at line 445 of file combobex.cpp.

References _tcsncpy, and Selection.

◆ GetSelStringLength()

int owl::TComboBoxExData::GetSelStringLength ( ) const
inline

Returns the length of the selection string excluding the terminating 0.

Definition at line 315 of file combobex.h.

References Selection.

◆ ResetSelections()

void owl::TComboBoxExData::ResetSelections ( )
inline

Definition at line 307 of file combobex.h.

References _T, Selection, and SelIndex.

◆ Select()

void owl::TComboBoxExData::Select ( int index)
inline

Selects an item at a given index.

Definition at line 282 of file combobex.h.

References GetItem(), Selection, SelIndex, and owl::TComboBoxExItem::Text.

◆ SelectString() [1/2]

void owl::TComboBoxExData::SelectString ( const tstring & str)
inline

Definition at line 176 of file combobex.h.

References SelectString().

◆ SelectString() [2/2]

void owl::TComboBoxExData::SelectString ( LPCTSTR str)

Selects "str", marking the matching String entry (if any) as selected.

Definition at line 452 of file combobex.cpp.

References _tcscmp, Items, Selection, and SelIndex.

◆ Size()

uint owl::TComboBoxExData::Size ( )

Definition at line 437 of file combobex.cpp.

References Items.

Member Data Documentation

◆ Items

TComboBoxExItemArray* owl::TComboBoxExData::Items
protected

Definition at line 188 of file combobex.h.

◆ Selection

tstring owl::TComboBoxExData::Selection
protected

Definition at line 189 of file combobex.h.

◆ SelIndex

int owl::TComboBoxExData::SelIndex
protected

Definition at line 190 of file combobex.h.


The documentation for this class was generated from the following files: