DRAWTEXTPARAMS

The DRAWTEXTPARAMS structure contains extended formatting options for the DrawTextEx function.

typedef struct { 
    UINT cbSize; 
    int  iTabLength; 
    int  iLeftMargin; 
    int  iRightMargin; 
    UINT uiLengthDrawn; 
} DRAWTEXTPARAMS, FAR *LPDRAWTEXTPARAMS; 
 

Members

cbSize
Specifies the structure size, in bytes.
iTabLength
Specifies the size of each tab stop, in units equal to the average character width.
iLeftMargin
Specifies the left margin, in units equal to the average character width.
iRightMargin
Specifies the right margin, in units equal to the average character width.
uiLengthDrawn
Receives the number of characters processed by DrawTextEx, including white-space characters. The number can be the length of the string or the index of the first line that falls below the drawing area. Note that DrawTextEx always processes the entire string if the DT_NOCLIP formatting flag is specified.

QuickInfo

  Windows NT: Requires version 4.0 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winuser.h.

See Also

Fonts and Text Overview, Font and Text Structures, DrawTextEx