OWLNext 7.0
Borland's Object Windows Library for the modern age
|
THdrItem contains information about an item in a header control. More...
#include <owl/colmnhdr.h>
Public Types | |
enum | TAlign { aLeft = HDF_LEFT , aCenter = HDF_CENTER , aRight = HDF_RIGHT } |
Format flags that determines how the contents (text and/or bitmap) will be layed out. More... | |
Public Member Functions | |
void | SetAlignment (TAlign) |
Methods to set the data members of the HD_ITEM structure. | |
void | SetText (LPCTSTR str) |
Sets the text of the HeaderItem object. | |
void | SetBitmap (HBITMAP hbm) |
Sets the bitmap handle of the HeaderItem object. | |
void | SetWidth (int cx) |
Sets the width of the item. | |
void | SetHeight (int cy) |
Sets the height of the item. | |
void | SetItemData (TParam2 data) |
Sets the application-defined item data attached to this item object. | |
void | SetMask (int msk) |
Updates the mask member of the structure. | |
void | SetImage (int item) |
Version 4.70. Zero-based index of an image within the image list. | |
void | SetOrder (int order) |
Version 4.70. | |
Constructors to be used for adding, inserting or updating a header control's item. | |
'str' specifies the title of the item. Note: The string pointed to must outlive the object! 'hbm' specifies a handle to a bitmap to be used in the item. | |
THdrItem (LPCTSTR str, TAlign=aLeft) | |
Constructs a THdrItem object for an item which has a string Defaults to left alignment and the DefStringItemSize. | |
THdrItem (LPCTSTR str, HBITMAP hbm, TAlign=aLeft) | |
Constructs a THdrItem object for an item consisting of both a string and a bitmapped image. | |
THdrItem (HBITMAP hbm, TAlign=aLeft) | |
Constructs a THdrItem object for an item which has a bitmapped image Defaults to left alignment and DefBitmapItemSize. | |
THdrItem (TCHAR *buffer, int len, uint msk=HDI_TEXT) | |
Constructors used primarily to construct a 'THdrItem' structure which will be used to retrieve information about an item within a header control. | |
THdrItem (uint msk=0) | |
Constructs an 'empty' THdrItem with the specified 'msk' enabled. | |
Static Public Member Functions | |
static void | SetDefStringSize (int size) |
API to allow user to update ObjectWindows' default string size. | |
static void | SetDefBitmapSize (int size) |
API to allow the user to update ObjectWindows' default bitmap item size. | |
Static Protected Attributes | |
static int | DefStringItemSize = 100 |
Default size of string item. | |
static int | DefBitmapItemSize = 32 |
Default size of bitmap item. | |
THdrItem contains information about an item in a header control.
Definition at line 40 of file colmnhdr.h.
Format flags that determines how the contents (text and/or bitmap) will be layed out.
Enumerator | |
---|---|
aLeft | Aligns the contents at the left edge of the item. |
aCenter | Aligns the contents horizontally at the center of the item. |
aRight | Aligns the contens at the right edge of the item. |
Definition at line 46 of file colmnhdr.h.
Constructs a THdrItem object for an item which has a string Defaults to left alignment and the DefStringItemSize.
Definition at line 68 of file colmnhdr.cpp.
References DefStringItemSize, SetText(), and SetWidth().
Constructs a THdrItem object for an item consisting of both a string and a bitmapped image.
Defaults to left alignment and the DefStringItemSize.
Definition at line 56 of file colmnhdr.cpp.
References DefStringItemSize, SetBitmap(), SetText(), and SetWidth().
Constructs a THdrItem object for an item which has a bitmapped image Defaults to left alignment and DefBitmapItemSize.
Definition at line 79 of file colmnhdr.cpp.
References DefBitmapItemSize, SetBitmap(), and SetWidth().
Constructors used primarily to construct a 'THdrItem' structure which will be used to retrieve information about an item within a header control.
Constructs an 'empty' THdrItem with the specified 'msk' enabled.
'buffer' specifies the location to receive the item's title and 'len' indicates the size of that buffer. The 'msk' flags indicates which members of the structure should be updated.
This flavour of the constructor is mainly used to construct an object which is used to retrieve information about an existing item. 'buffer' specifies a location which will receive the text of the item and 'len' specifies the size of the buffer.
Definition at line 102 of file colmnhdr.cpp.
|
explicit |
Constructs an 'empty' THdrItem with the specified 'msk' enabled.
This flavour of the constructor is mainly used to construct an object which is used to retrieve information about an existing item.
Definition at line 91 of file colmnhdr.cpp.
Methods to set the data members of the HD_ITEM structure.
Sets the alignment of the contents of the item.
Definition at line 109 of file colmnhdr.cpp.
Sets the bitmap handle of the HeaderItem object.
Definition at line 134 of file colmnhdr.cpp.
API to allow the user to update ObjectWindows' default bitmap item size.
Definition at line 46 of file colmnhdr.cpp.
References DefBitmapItemSize.
API to allow user to update ObjectWindows' default string size.
Definition at line 34 of file colmnhdr.cpp.
References DefStringItemSize.
Sets the height of the item.
Definition at line 156 of file colmnhdr.cpp.
Version 4.70. Zero-based index of an image within the image list.
Definition at line 177 of file colmnhdr.cpp.
Sets the application-defined item data attached to this item object.
Definition at line 167 of file colmnhdr.cpp.
Updates the mask member of the structure.
The latter indicates which other members of the structure contain valid data.
Definition at line 333 of file colmnhdr.h.
Version 4.70.
Order in which the item appears within the header control, from left to right.
Definition at line 189 of file colmnhdr.cpp.
Sets the text of the HeaderItem object.
Definition at line 120 of file colmnhdr.cpp.
References _tcslen, and CONST_CAST.
Sets the width of the item.
Definition at line 145 of file colmnhdr.cpp.
|
staticprotected |
Default size of bitmap item.
Definition at line 94 of file colmnhdr.h.
|
staticprotected |
Default size of string item.
Definition at line 93 of file colmnhdr.h.