win32gui.DrawTextW

int,PyRECT = DrawTextW(hDC, String , Count , Rect , Format )

Draws Unicode text on a device context.

Parameters

hDC : PyHANDLE

Handle to a device context

String : PyUnicode

Text to be drawn

Count : int

Number of characters to draw, use -1 for entire null terminated string

Rect : PyRECT

Rectangle in which to draw text

Format : int

Formatting flags, combination of win32con.DT_* values

Comments

Accepts keyword args.

Return Value

Returns the height of the drawn text, and the rectangle coordinates