9#if !defined(OWL_COMBOBEX_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
73 void InitItem(COMBOBOXEXITEM& item,
uint tsize = 0)
const;
77 void ReFillItem(
const COMBOBOXEXITEM& item);
97 HWND GetEditControl();
98 HWND GetComboBoxCtrl();
99 bool HasEditChanged();
101 uint32 GetExtendedStyle()
const;
110 int DeleteItem(
int index);
127 void SetupWindow()
override;
169 int DeleteItem(
int index);
174 void Select(
int index);
175 void SelectString(
LPCTSTR str);
178 const tstring& GetSelection()
const;
179 int GetSelIndex()
const;
180 int GetSelCount()
const;
181 void ResetSelections();
183 int GetSelStringLength()
const;
316 return static_cast<int>(
Selection.length());
#define PRECONDITION(condition)
void Select(int index)
Selects an item at a given index.
int GetSelStringLength() const
Returns the length of the selection string excluding the terminating 0.
TComboBoxExItemArray * Items
TComboBoxExItem & GetItem(int index)
const tstring & GetSelString() const
void SelectString(const tstring &str)
ComboBoxEx controls are combo box controls that provide native support for item images.
int EvCompareItem(uint ctrlId, const COMPAREITEMSTRUCT &comp)
void EvDeleteItem(uint ctrlId, const DELETEITEMSTRUCT &del)
uint32 GetExtendedStyle() const
TImageList * GetImageList()
void Transfer(TComboBoxExData &data, TTransferDirection op)
Safe overload.
void SetUnicode(bool unicode)
int DeleteItem(int index)
void EvDrawItem(uint ctrlId, const DRAWITEMSTRUCT &draw)
void EvMeasureItem(uint ctrlId, MEASUREITEMSTRUCT &meas)
uint32 SetExtendedStyle(uint32 mask, uint32 style)
Encapsulates an item in an extended combo box (COMBOBOXEXITEM).
TProperty< int > Selected
The item selected image.
TObjProperty< tstring > Text
Band text label.
TProperty< int > Mask
Band image index (into rebar image list): don't use -1.
TProperty< int > Overlay
Band colors.
TProperty< LPARAM > Param
Additional data.
TProperty< int > Indent
Band colors.
TProperty< INT_PTR > Item
== -1 to add at end
TProperty< int > Image
The item image.
You can use TComboBox to create a combo box or a combo box control in a parent TWindow,...
TImageList is a wrapper class for the ImageList common "control".
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TResult DefaultProcessing()
Handles default processing of events, which includes continued processing of menu/accelerators comman...
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
HWND THandle
TWindow encapsulates an HWND.
HWND GetHandle() const
Returns the handle of the window.
Definition of class TComboBox and TComboBoxData the base class for all combobox controls.
Definition of classes for CommonControl encapsulation.
Definition of class TControl.
#define DECLARE_RESPONSE_TABLE(cls)
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
TComboBoxExItemArray::Iterator TComboBoxExItemArrayIter
TObjectArray< TComboBoxExItem > TComboBoxExItemArray
TTransferDirection
The TTransferDirection enum describes the constants that the transfer function uses to determine how ...
Object Windows Library (OWLNext Core)
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
#define CONST_CAST(targetType, object)
Credits: The Property pattern is taken from "Patterns in Practice: A Property Template for C++",...