draw_text_format


The following enumerators are defined within the scope of the structure draw_text_format.

bottom Text is aligned with the bottom of the rectangle. The flag SingleLine should also be specified.
center Horizontally centers text within the rectangle.
edit_control Imitates the process of a multiple line edit control. The average character width is calculated in the same manner and a partially visible last line is not displayed.
end_ellipsis When required, characters at the end of the string are replaced with an ellipsis to ensure that the string fits the rectangle. Unless modify_string is also specified, the string is not modified.
expand_tabs Causes tabulations to be expanded. By default, a tab consists of 8 characters.
external_leading The internal leading of the font is included in the line height (which is not normally the case).
_internal Text metrics are calculated using the system font.
left Text is aligned with the left side of the rectangle.
modify_string Modifies the string to match the displayed string. This flag is effective only when one of the flags endEllipsis or PathEllipsis is also specified.
no_clip Text is drawn without being clipped - this option is slightly faster.
no_prefix Causes processing of mnenomic prefix characters to be switched off. normally, a single ampersand (&) causes the character that follows to be underlined (in which case, a double ampersand is rendered as a single ampersand).
path_ellipsis When required, characters in the middle of the string are replaced with an ellipsis to ensure that the string fits the rectangle. Unless modify_string is also specified, the string is not modified. If the string contains a backslash character, this flag causes as much of the text that follows the last backslash to be preserved.
calculate_rectangle Causes the width and height of the containing rectangle to be adjusted. The given rectangle is extended vertically (for multiple lines) and horizontally to accommodate the text. When this flag is specified, the height of the text is also returned but the text is not drawn.
right The text is aligned with the right side of the rectangle.
right_to_left The text is written in right to left order when an Arabic or Hebrew font is selected into the device context.
single_line The text is displayed on a single line and carriage returns and line feeds do not cause the line to be broken.
tabstop Sets the tab stops. The high-order byte of the low-order part (bits 8-15) of the format parameter specifies the number of characters per tab.
top Aligns the text with the top of the rectangle (single line text only).
vertical_center Text is vertically centered within the rectangle (single line text only).
word_break enable word break. Text lines are automatically broken when a part extends beyond the specified rectangle. A carriage return/line feed sequence also causes lines to be broken.
word_ellipsis Causes text that does not fit the rectangle to be truncated and replaced by an ellipsis.

Notes

The flags:

cannot be combined with the flag tabstop.