DC_PrinterTextBlock

This function draws formatted text in the specified rectangle.

LONG DC_PrintTextBlock(
    LPCTSTR str,
    double pos_x,
    double pos_y,
    double width,
    double height,
    UINT iFormat,
);

Parameters

str

NULL terminal string will be printed.

pos_x

Coordinate system of x start position.

pos_y

Coordinate system of y start position.

width

Width of string block.

height

Height of string block.

iFormat

Unsigned integer that specifies the method of formatting the text.

 

Return Values

SPRT_SUCCEED indicates success, SPRT_FAILED indicates failure



© 2008 SPRT . All rights reserved.