; Top-justifies text (single line only). #define DTTOP $ZHEX("0H") #define bDTTOP 0 ; Aligns text to the left. #define DTLEFT $ZHEX("0H") #define bDTLEFT 0 ; Centers text horizontally in the rectangle. #define DTCENTER $ZHEX("1H") #define bDTCENTER 1 ; Aligns text to the right. #define DTRIGHT $ZHEX("2H") #define bDTRIGHT 2 ; Centers text vertically (single line only). #define DTVCENTER $ZHEX("4H") #define bDTVCENTER 3 ; Justifies the text to the bottom of the rectangle. This value must be combined with DT_SINGLELINE. #define DTBOTTOM $ZHEX("8H") #define bDTBOTTOM 4 ; Breaks words. Lines are automatically broken between words if a word would extend ;past the edge of the rectangle specified by the lpRect parameter. A carriage return-linefeed ;sequence also breaks the line. #define DTWORDBREAK $ZHEX("10H") #define bDTWORDBREAK 5 ; Displays text on a single line only. Carriage returns and linefeeds do not break the line. #define DTSINGLELINE $ZHEX("20H") #define bDTSINGLELINE 6 ; Expands tab characters. The default number of characters per tab is eight. #define DTEXPANDTABS $ZHEX("40H") #define bDTEXPANDTABS 7 ; Sets tab stops. Bits 15-8 (high-order byte of the low-order word) of the uFormat ;parameter specify the number of characters for each tab. The default number of ;characters per tab is eight. #define DTTABSTOP $ZHEX("80H") #define bDTTABSTOP 8 ; Draws without clipping. DrawText is somewhat faster when DT_NOCLIP is used. #define DTNOCLIP $ZHEX("100H") #define bDTNOCLIP 9 ; Includes the font external leading in line height. Normally, external leading ;is not included in the height of a line of text. #define DTEXTERNALLEADING $ZHEX("200H") #define bDTEXTERNALLEADING 10 ; Determines the width and height of the rectangle. If there are multiple lines ;of text, DrawText uses the width of the rectangle pointed to by the lpRect ;parameter and extends the base of the rectangle to bound the last line of text. ;If there is only one line of text, DrawText modifies the right side of the ;rectangle so that it bounds the last character in the line. In either case, ;DrawText returns the height of the formatted text but does not draw the text. #define DTCALCRECT $ZHEX("400H") #define bDTCALCRECT 11 ; Turns off processing of prefix characters. Normally, DrawText interprets ;the mnemonic-prefix character & as a directive to underscore the character ;that follows, and the mnemonic-prefix characters && as a directive to print ;a single &. By specifying DT_NOPREFIX, this processing is turned off. #define DTNOPREFIX $ZHEX("800H") #define bDTNOPREFIX 12 ; Duplicates the text-displaying characteristics of a multiline edit control. ;Specifically, the average character width is calculated in the same manner as ;for an edit control, and the function does not display a partially visible last line. #define DTEDITCONTROL $ZHEX("2000H") #define bDTEDITCONTROL 14 ; Replaces part of the given string with ellipses, if necessary, so that the ;result fits in the specified rectangle. The given string is not modified unless ;the DT_MODIFYSTRING flag is specified. You can specify DT_END_ELLIPSIS to replace ;characters at the end of the string, or DT_PATH_ELLIPSIS to replace characters in ;the middle of the string. If the string contains backslash (\) characters, ;DT_PATH_ELLIPSIS preserves as much as possible of the text after the last backslash. #define DTPATHELLIPSIS $ZHEX("4000H") #define bDTPATHELLIPSIS 15 #define DTENDELLIPSIS $ZHEX("8000H") #define bDTENDELLIPSIS 16 ; Modifies the given string to match the displayed text. This flag has no ;effect unless the DT_END_ELLIPSIS or DT_PATH_ELLIPSIS flag is specified. #define DTMODIFYSTRING $ZHEX("10000H") #define bDTMODIFYSTRING 17 #define StdDrawFlags $$$DTNOPREFIX+$$$DTLEFT+$$$DTVCENTER+$$$DTSINGLELINE