1.函数功能
The TextOut function writes a character string at the specified location, using the currently selected font, background color, and text color.
TextOut函数使用当前选定的字体、背景颜色和文本颜色在指定位置写入字符串。
2.函数原型
BOOL TextOutA( HDC hdc, int x, int y, LPCSTR lpString, int c );(普通字符)
BOOL TextOutW( HDC hdc, int x, int y, LPCWSTR lpString, int c );(宽字符)
参数:
hdc:当前DC句柄。
x:指定用于字符串对齐的基准点的逻辑x坐标
y:指定用于字符串对齐的基准点的逻辑y坐标
lpString:A pointer to the string to be drawn. The string does not need to be zero-terminated(不必以\0结尾), because cchString specifies the length of the string.
c:指定字符串的长度。
返回值:
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
3.备注
The interpretation of the reference point(基准点) depends on the