9#if !defined(OWL_COLMNHDR_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
29# define HDI_ALL (HDI_BITMAP|HDI_FORMAT|HDI_HEIGHT|HDI_LPARAM|HDI_TEXT|HDI_WIDTH)
58 explicit THdrItem(LPCTSTR str, TAlign = aLeft);
59 THdrItem(LPCTSTR str, HBITMAP hbm, TAlign = aLeft);
60 explicit THdrItem(HBITMAP hbm, TAlign = aLeft);
78 void SetAlignment(TAlign);
79 void SetText(LPCTSTR str);
80 void SetBitmap(HBITMAP hbm);
81 void SetWidth(
int cx);
82 void SetHeight(
int cy);
84 void SetMask(
int msk);
86 void SetImage(
int item);
87 void SetOrder(
int order);
89 static void SetDefStringSize(
int size);
90 static void SetDefBitmapSize(
int size);
120 int x,
int y,
int w,
int h,
128 bool Layout(
TRect& boundingRect, WINDOWPOS& winPos);
203 HDM_CREATEDRAGIMAGE,
TParam1(index)));
TColumnHeader encapsulates the 'header control', a window usually positioned above columns of text or...
HIMAGELIST SetImageList(HIMAGELIST iml)
Version 4.70 functionality.
bool Layout(TRect &boundingRect, WINDOWPOS &winPos)
This method retrieves the size and position of a header control within a given rectangle.
uint Transfer(void *buffer, TTransferDirection direction)
Transfers are not implemented for ColumnHeaders. Simply return 0.
int SetHotDivider(uint32 value, bool flag=true)
Version 4.70 functionality.
bool Delete(int index)
Deletes the item at the specified 'index' from the header control.
int Add(const THdrItem &item)
Adds a new item to the column header.
bool SetItem(const THdrItem &itemInfo, int index)
Updates the attribute(s) a the item at the specified 'index'.
int Insert(const THdrItem &item, int index)
Inserts a new item after the specified location, 'index', in the column Header control.
bool GetItem(THdrItem &, int index, uint mask=0)
Retrieves information about the item at the specified index by filling out the 'itemInfo' structure p...
bool GetItemRect(TRect &rect, int index) const
Version 4.70 functionality.
TResult OrderToIndex(int order)
Version 4.70 functionality.
virtual auto GetWindowClassName() -> TWindowClassName
Returns the class name of the underlying control associated with the TColumnHeader object.
bool SetOrderArray(int size, int *array)
Version 4.70 functionality.
HIMAGELIST CreateDragImage(int index) const
Version 4.70 functionality.
bool GetOrderArray(int size, int *array) const
Version 4.70 functionality.
int HitTest(THeaderHitTestInfo &ht)
Tests a point to determine which header item, if any, is at the specified point.
int GetCount() const
If successful this method returns the number of items in the header control.
HIMAGELIST GetImageList() const
Version 4.70 functionality.
TColumnHeader(TWindow *parent, int id, int x, int y, int w, int h, TModule *module=0)
Constructor for TColumnHeader.
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),...
THdrItem contains information about an item in a header control.
static int DefStringItemSize
Default size of string item.
TAlign
Format flags that determines how the contents (text and/or bitmap) will be layed out.
@ aLeft
Aligns the contents at the left edge of the item.
@ aRight
Aligns the contens at the right edge of the item.
@ aCenter
Aligns the contents horizontally at the center of the item.
static int DefBitmapItemSize
Default size of bitmap item.
THdrItem(LPCTSTR str, TAlign=aLeft)
Constructs a THdrItem object for an item which has a string Defaults to left alignment and the DefStr...
void SetMask(int msk)
Updates the mask member of the structure.
THdrNotify encapsulates the 'HD_NOTIFY' structure which is sent with the WM_NOTIFY messages sent by t...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
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.
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).
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
#define CONST_CAST(targetType, object)
Definition of container classes used and made available by OWL.