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

Encapsulates an item in an extended combo box (COMBOBOXEXITEM). More...

#include <owl/combobex.h>

Public Member Functions

 TComboBoxExItem ()
 
 TComboBoxExItem (const tstring &str, INT_PTR item=-1, int image=-1)
 
 TComboBoxExItem (const tstring &str, INT_PTR item, int image, int selectedImage, int overlayImage=-1, int indent=-1, LPARAM param=0)
 
 TComboBoxExItem (const TComboBoxExItem &item)
 Copies the property data, not the properties themselves.
 
TComboBoxExItemoperator= (const TComboBoxExItem &item)
 Assigns the property data, not the properties themselves.
 
Comparison operators for templates
bool operator< (const TComboBoxExItem &item)
 
bool operator== (const TComboBoxExItem &item)
 

Public Attributes

Properties
TProperty< intMask
 Band image index (into rebar image list): don't use -1.
 
TProperty< INT_PTRItem
 == -1 to add at end
 
TObjProperty< tstringText
 Band text label.
 
TProperty< intImage
 The item image.
 
TProperty< intSelected
 The item selected image.
 
TProperty< intOverlay
 Band colors.
 
TProperty< intIndent
 Band colors.
 
TProperty< LPARAMParam
 Additional data.
 

Protected Member Functions

void Init ()
 Initialises all data members to zero.
 
void InitItem (COMBOBOXEXITEM &item, uint tsize=0) const
 Initializes native item with this.
 
void ReFillItem (const COMBOBOXEXITEM &item)
 Initializes this with native item.
 

Friends

class TComboBoxEx
 

Detailed Description

Encapsulates an item in an extended combo box (COMBOBOXEXITEM).

Definition at line 37 of file combobex.h.

Constructor & Destructor Documentation

◆ TComboBoxExItem() [1/4]

owl::TComboBoxExItem::TComboBoxExItem ( )

Definition at line 229 of file combobex.cpp.

References Init().

◆ TComboBoxExItem() [2/4]

owl::TComboBoxExItem::TComboBoxExItem ( const tstring & str,
INT_PTR item = -1,
int image = -1 )

Definition at line 237 of file combobex.cpp.

References Image, Init(), Item, Selected, and Text.

◆ TComboBoxExItem() [3/4]

owl::TComboBoxExItem::TComboBoxExItem ( const tstring & str,
INT_PTR item,
int image,
int selectedImage,
int overlayImage = -1,
int indent = -1,
LPARAM param = 0 )

Definition at line 246 of file combobex.cpp.

References Image, Indent, Init(), Item, Overlay, Param, Selected, and Text.

◆ TComboBoxExItem() [4/4]

owl::TComboBoxExItem::TComboBoxExItem ( const TComboBoxExItem & item)

Copies the property data, not the properties themselves.

Definition at line 262 of file combobex.cpp.

References operator=().

Member Function Documentation

◆ Init()

void owl::TComboBoxExItem::Init ( )
protected

Initialises all data members to zero.

Definition at line 365 of file combobex.cpp.

References _T, Image, Indent, Item, Mask, Overlay, Param, Selected, and Text.

◆ InitItem()

void owl::TComboBoxExItem::InitItem ( COMBOBOXEXITEM & item,
uint tsize = 0 ) const
protected

Initializes native item with this.

Definition at line 288 of file combobex.cpp.

References Image, Indent, Item, Mask, Overlay, Param, Selected, and Text.

◆ operator<()

bool owl::TComboBoxExItem::operator< ( const TComboBoxExItem & item)
inline

Definition at line 49 of file combobex.h.

◆ operator=()

TComboBoxExItem & owl::TComboBoxExItem::operator= ( const TComboBoxExItem & item)

Assigns the property data, not the properties themselves.

Definition at line 271 of file combobex.cpp.

References Image, Indent, Item, Mask, Overlay, Param, Selected, and Text.

◆ operator==()

bool owl::TComboBoxExItem::operator== ( const TComboBoxExItem & item)
inline

Definition at line 50 of file combobex.h.

◆ ReFillItem()

void owl::TComboBoxExItem::ReFillItem ( const COMBOBOXEXITEM & item)
protected

Initializes this with native item.

Definition at line 324 of file combobex.cpp.

References _T, Image, Indent, Item, Mask, Overlay, Param, Selected, and Text.

Friends And Related Symbol Documentation

◆ TComboBoxEx

Definition at line 79 of file combobex.h.

Member Data Documentation

◆ Image

TProperty<int> owl::TComboBoxExItem::Image

The item image.

Definition at line 58 of file combobex.h.

◆ Indent

TProperty<int> owl::TComboBoxExItem::Indent

Band colors.

Definition at line 61 of file combobex.h.

◆ Item

TProperty<INT_PTR> owl::TComboBoxExItem::Item

== -1 to add at end

Definition at line 56 of file combobex.h.

◆ Mask

TProperty<int> owl::TComboBoxExItem::Mask

Band image index (into rebar image list): don't use -1.

Definition at line 55 of file combobex.h.

◆ Overlay

TProperty<int> owl::TComboBoxExItem::Overlay

Band colors.

Definition at line 60 of file combobex.h.

◆ Param

TProperty<LPARAM> owl::TComboBoxExItem::Param

Additional data.

Definition at line 62 of file combobex.h.

◆ Selected

TProperty<int> owl::TComboBoxExItem::Selected

The item selected image.

Definition at line 59 of file combobex.h.

◆ Text

TObjProperty<tstring> owl::TComboBoxExItem::Text

Band text label.

Definition at line 57 of file combobex.h.


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