9#if !defined(OWL_TABCTRL_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
27# define TCIF_ALL (TCIF_TEXT|TCIF_IMAGE|TCIF_PARAM)
51 int buffLen = 0,
tchar * buffer = 0);
63 TTabItem(
int imageIndex, LPCTSTR str);
66 void SetLabel(LPCTSTR str,
int len = 0);
95 int x,
int y,
int w,
int h,
105 int Add(LPCTSTR tabText);
107 int Insert(LPCTSTR tabText,
int index);
211 *(
reinterpret_cast<TC_ITEM*
>(
this)) = tbItem;
#define PRECONDITION(condition)
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
TTabControl encapsulates the tab control - a window that provides a user interface analogous to divid...
void RemoveImage(int index)
HIMAGELIST GetImageList() const
TTabControl(TWindow *parent, int id, int x, int y, int w, int h, TModule *module=0)
Constructor for TTabControl.
void AdjustRect(bool clientInWindowOut, TRect &rect)
void SetPadding(const TSize &size)
void EvHScroll(uint scrollCode, uint thumbPos, THandle hWndCtl)
Keeps TWindow from rerouting this message.It must be left as is for the tab control,...
void SetToolTips(HWND toolTip)
bool SetItem(int index, const TTabItem &item)
uint32 SetExtendedStyle(uint32 mask, uint32 style)
void DeselectAll(bool exclFocus=true)
bool HighLightItem(int item, bool highlight=true)
auto Transfer(void *buffer, TTransferDirection) -> uint override
Transfer is not implemented in TTabControl, given that each item interacts with settings outside of t...
TSize SetItemSize(const TSize &size)
auto GetWindowClassName() -> TWindowClassName override
Returns the class name of the underlying control associated with the TTabControl object.
void SetMinTabWidth(int width)
int HitTest(TTabHitTestInfo &)
int Insert(const TTabItem &, int index)
bool GetItem(int index, TTabItem &item) const
bool GetItemRect(int index, TRect &rect) const
void EvVScroll(uint scrollCode, uint thumbPos, THandle hWndCtl)
Keep TWindow from rerouting this message - it must be left as is for the tab control as it may origin...
uint32 GetExtendedStyle() const
HIMAGELIST SetImageList(HIMAGELIST)
bool SetItemExtra(int extra)
int Add(const TTabItem &)
Inserts a new tab described by the 'item' parameter to the tab control at the position specified by t...
TTabHitTestInfo is a thin [very thin] wrapper around the TC_HITTESTINFO structure.
TTabItem encapsulates the attributes of a single tab within a tab control.
TTabItem(uint mask)
Constructor for a Tab Item: This constructor is useful when creating a TabItem (TC_ITEM) structure wh...
void SetState(uint32 state, uint32 mask)
void SetParam(TParam2 lp)
Sets the user-defined data associated with the tab represented by this item structure.
void SetIcon(int imageIndex)
Sets the index of the image assiciated with the tab represented by this item structure.
void SetLabel(LPCTSTR str, int len=0)
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 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 classes for CommonControl encapsulation.
Definition of container classes used and made available by OWL.
TTransferDirection
The TTransferDirection enum describes the constants that the transfer function uses to determine how ...
Object Windows Library (OWLNext Core).
uint32 MkUint32(uint16 lo, uint16 hi)
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
Definition of class TUpDown.