8#if !defined(OWL_COLMNHDR_H)
207 int x,
int y,
int w,
int h,
#define DIAG_DECLARE_GROUP(group)
#define TRACEX(group, level, message)
TColumnHeader encapsulates the 'header control', a window usually positioned above columns of text or...
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.
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...
virtual auto GetWindowClassName() -> TWindowClassName
Returns the class name of the underlying control associated with the TColumnHeader object.
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.
TColumnHeader(TWindow *parent, int id, int x, int y, int w, int h, TModule *module=0)
Constructor for TColumnHeader.
TControl unifies its derived control classes, such as TScrollBar, TControlGadget, and TButton.
THdrItem contains information about an item in a header control.
void SetImage(int item)
Version 4.70. Zero-based index of an image within the image list.
void SetHeight(int cy)
Sets the height of the item.
static int DefStringItemSize
Default size of string item.
void SetOrder(int order)
Version 4.70.
void SetWidth(int cx)
Sets the width of the item.
void SetBitmap(HBITMAP hbm)
Sets the bitmap handle of the HeaderItem object.
static void SetDefBitmapSize(int size)
API to allow the user to update ObjectWindows' default bitmap item size.
void SetText(LPCTSTR str)
Sets the text of the HeaderItem object.
TAlign
Format flags that determines how the contents (text and/or bitmap) will be layed out.
void SetAlignment(TAlign)
Methods to set the data members of the HD_ITEM structure.
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...
static void SetDefStringSize(int size)
API to allow user to update ObjectWindows' default string size.
void SetItemData(TParam2 data)
Sets the application-defined item data attached to this item object.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
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...
bool SetWindowPos(HWND hWndInsertAfter, const TRect &rect, uint flags)
Changes the size of the window pointed to by rect.
TWindow * GetParentO() const
Return the OWL's parent for this window.
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
void GetClientRect(TRect &rect) const
Gets the coordinates of the window's client area and then copies them into the object referred to by ...
Definition of class TColumnHeader and helper classes.
TTransferDirection
The TTransferDirection enum describes the constants that the transfer function uses to determine how ...
Object Windows Library (OWLNext Core)
void InitializeCommonControls(uint controlFlags)
Wrapper for the Windows API function InitCommmonControlsEx.
LPARAM TParam2
Second parameter type.
#define CONST_CAST(targetType, object)