函数参考


_WinAPI_GetThemeTextExtent

Calculates the size and location of the specified text when rendered in the visual style font.

#Include <WinAPIEx.au3>
_WinAPI_GetThemeTextExtent ( $hTheme, $iPartId, $iStateId, $hDC, $sText, $tRECT, $iFlags )

参数

$hTheme Handle to a window's specified theme data.
$iPartId The part in which the text will be drawn.
$iStateId The state of the part.
$hDC Handle to the device context to select the font into.
$sText The string that contains the text to draw.
$tRECT $tagRECT structure that contains the rectangle used to control layout of the text. This parameter may be set to 0.
$iFlags The string's formatting flags ($DT_*).

返回值

Success $tagRECT structure that contains, in logical coordinates, the rectangle required to fit the rendered text.
失败: 返回 0 并设置 @error 标志为非 0 值, @extended 标志可能包含一个系统错误代码.

注意/说明

None

相关

详情参考

在MSDN中搜索