The PAINTALIGNMENT enumeration type contains options for aligning painted text. Each paint alignment value is given below:
typedef enum
{
//Valid values for horizontal alignment are:
PAINT_ALIGNMENT_LEFT = 0X01,
PAINT_ALIGNMENT_HCENTER = 0X02,
PAINT_ALIGNMENT_RIGHT = 0X04,
//Valid values for vertical alignment are:
PAINT_ALIGNMENT_TOP = 0X08,
PAINT_ALIGNMENT_VCENTER = 0X10,
PAINT_ALIGNMENT_BOTTOM = 0X20
} PAINTALIGNMENT ;
Aligned to the left horizontally.
Centered horizontally.
Aligned to the right horizontally.
Aligned to the top vertically.
Centered vertically.
Aligned to the bottom vertically.
A value from each category (horizontal and vertical) may be combined using the bitwise OR operator ( | ).