COXToolTipCtrl::GetBoundsRect

Dundas

COXToolTipCtrl::GetBoundsRect

Members | Overview

virtual CRect GetBoundsRect(CString strText, int nWidth) const

Parameters

strText

The text to be displayed (may be multiline).

nWidth

The desired width. If this is zero (0) the width will be calculated.

Return Value

The bounding RECT for the text (with the top left corner at 0, 0).

Remarks

Returns the smallest possible rectangle that will contain the text (including margins).

See also: CalculateInfoBoxRect