网站首页  词典首页

请输入您要查询的函数:

 

术语 tabbedtextout
释义 TabbedTextOut
语法:
LONG TabbedTextOut(
__in HDC hDC,
__in int X,
__in int Y,
__in LPCTSTR lpString,
__in int nCount,
__in int nTabPositions,
__in const LPINT lpnTabStopPositions,
__in int nTabOrigin
);
TabbedTextOut功能
写入的TabbedTextOut函数在指定位置的字符串,扩大标签,标签在一个数组中指定的值,停止位置。文字写在当前选定的字体,背景颜色和文字颜色。
参数
hDC [in]
一个句柄,设备上下文。
X [in]
在x坐标字符串的出发点,按逻辑单位。
y [in]
The y-coordinate of the starting point of the string, in logical units.
lpString [in]
一个字符串制定指针。字符串不须零终止,自nCount指定字符串的长度。
nCount [in]
该字符串的长度指向lpString。
nTabPositions [in]
中值的数组的标签数量停止位置。
lpnTabStopPositions [in]
对一个数组,包含标签指针停止位置,按逻辑单位。制表位必须按递增顺序排序,最小的x值应在数组中的第一个项目。
nTabOrigin [in]
在x坐标起始位置的选项卡的扩展逻辑单位。
返回值
如果函数成功,返回值是尺寸,按逻辑单位,该字符串。高度是在高位字和宽度在低字是。
如果函数失败,返回值是零。
备注
如果nTabPositions参数是零,lpnTabStopPositions参数为NULL,标签被扩展到8倍,平均字符宽度。
如果nTabPositions是1,制表分隔由在lpnTabStopPositions数组的第一个值指定的距离。
如果lpnTabStopPositions阵列多个值,包含一个制表停止设置为数组中的每个值,直至由nTabPositions所指明的数目。
该nTabOrigin参数允许应用程序调用的单行函数的TabbedTextOut几次。如果应用程序调用TabbedTextOut不止一次设置为相同的值每次nTabOrigin,功能扩展所有标签相对于受nTabOrigin指定的位置。
默认情况下,目前的情况是不使用或TabbedTextOut功能更新。如果应用程序需要更新目前的情况,当它调用TabbedTextOut,应用程序可以调用与wFlags参数设置为TA_UPDATECP的SetTextAlign功能。当此标志设置,系统将忽略X和到TabbedTextOut后续调用函数y参数,利用当前位置代替。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
Unicode和ANSI namesTabbedTextOutW(Unicode)和TabbedTextOutA(ANSI)的
参见
字体和文字概述
字体和文本函数
DrawText
GetTabbedTextExtent
GrayString
SelectObject
SetBkColor
SetTextAlign
SetTextColor
TextOut
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==TabbedTextOut Function
The TabbedTextOut function writes a character string at a specified location, expanding tabs to the values specified in an array of tab-stop positions. Text is written in the currently selected font, background color, and text color.
Syntax
LONG TabbedTextOut(
__in HDC hDC,
__in int X,
__in int Y,
__in LPCTSTR lpString,
__in int nCount,
__in int nTabPositions,
__in const LPINT lpnTabStopPositions,
__in int nTabOrigin
);
Parameters
hDC [in]
A handle to the device context.
X [in]
The x-coordinate of the starting point of the string, in logical units.
Y [in]
The y-coordinate of the starting point of the string, in logical units.
lpString [in]
A pointer to the character string to draw. The string does not need to be zero-terminated, since nCount specifies the length of the string.
nCount [in]
The length of the string pointed to by lpString.
nTabPositions [in]
The number of values in the array of tab-stop positions.
lpnTabStopPositions [in]
A pointer to an array containing the tab-stop positions, in logical units. The tab stops must be sorted in increasing order; the smallest x-value should be the first item in the array.
nTabOrigin [in]
The x-coordinate of the starting position from which tabs are expanded, in logical units.
Return Value
If the function succeeds, the return value is the dimensions, in logical units, of the string. The height is in the high-order word and the width is in the low-order word.
If the function fails, the return value is zero.
Remarks
If the nTabPositions parameter is zero and the lpnTabStopPositions parameter is NULL, tabs are expanded to eight times the average character width.
If nTabPositions is 1, the tab stops are separated by the distance specified by the first value in the lpnTabStopPositions array.
If the lpnTabStopPositions array contains more than one value, a tab stop is set for each value in the array, up to the number specified by nTabPositions.
The nTabOrigin parameter allows an application to call the TabbedTextOut function several times for a single line. If the application calls TabbedTextOut more than once with the nTabOrigin set to the same value each time, the function expands all tabs relative to the position specified by nTabOrigin.
By default, the current position is not used or updated by the TabbedTextOut function. If an application needs to update the current position when it calls TabbedTextOut, the application can call the SetTextAlign function with the wFlags parameter set to TA_UPDATECP. When this flag is set, the system ignores the X and Y parameters on subsequent calls to the TabbedTextOut function, using the current position instead.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
Unicode and ANSI namesTabbedTextOutW (Unicode) and TabbedTextOutA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
DrawText
GetTabbedTextExtent
GrayString
SelectObject
SetBkColor
SetTextAlign
SetTextColor
TextOut
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145129(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:24:41