↑  ←  Описание функции


_GUIToolTip_AdjustRect

Calculates the text display rectangle from the window rectangle

#include <GuiToolTip.au3>
_GUIToolTip_AdjustRect($hWnd, ByRef $tRect [, $fLarger = True])

Параметры

$hWnd Дескриптор ToolTip
$tRect $tagRECT structure that holds a window or text display rectangle
$fLarger [необязательный] Value that specifies which operation to perform. If True, $tRect is used to specify a text display rectangle and it receives the corresponding window rectangle. If False, $tRect is used to specify a window rectangle and it receives the corresponding text display rectangle.

Возвращаемое значение

Успех: Возвращает структуру $tagRECT

Примечания

The ToolTip's window rectangle is somewhat larger than the text display rectangle that bounds the ToolTip string. The window origin is also offset up and to the left from the origin of the text display rectangle.
To position the text display rectangle, you must calculate the corresponding window rectangle and use that rectangle to position the ToolTip. $TTM_ADJUSTRECT handles this calculation for you. If you set $fLarger to True, $TTM_ADJUSTRECT takes the size and position of the desired ToolTip text display rectangle, and passes back the size and position of the ToolTip window needed to display the text in the specified position. If you set $fLarger to False you can specify a ToolTip window rectangle and $TTM_ADJUSTRECT will return the size and position of its text rectangle.