CToolTipCtrl::AdjustRect
Converts between a tooltip control's text display rectangle and its window rectangle.
BOOL AdjustRect(
LPRECT lprc,
BOOL bLarger = TRUE
);
Параметры
lprc
Pointer to a RECT structure that holds either a tool tip window rectangle or a text display rectangle.bLarger
If TRUE, lprc is used to specify a text-display rectangle, and it receives the corresponding window rectangle. If FALSE, lprc is used to specify a window rectangle, and it receives the corresponding text display rectangle.
Возвращаемое значение
Nonzero if the rectangle is successfully adjusted; otherwise 0.
Заметки
This member function calculates a tool tip control's text display rectangle from its window rectangle, or the tool tip window rectangle needed to display a specified text display rectangle.
This member function implements the behavior of the Win32 message TTM_ADJUSTRECT, as described in the Windows SDK.
Требования
Header: afxcmn.h