Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DRAWTEXTPARAMS structure

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

Syntax


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

Members

cbSize

The structure size, in bytes.

iTabLength

The size of each tab stop, in units equal to the average character width.

iLeftMargin

The left margin, in units equal to the average character width.

iRightMargin

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Fonts and Text Overview
Font and Text Structures
DrawTextEx

 

 

Community Additions

ADD
Show:
© 2015 Microsoft