COXToolTipCtrl::CalculateInfoBoxRect
virtual CRect CalculateInfoBoxRect(CPoint& pt, COXToolTipInfo* pToolTip, CRect& rectTextBounds) const
Parameters
pt |
The top left corner of the region. |
pToolTip |
Information on the tooltip. |
rectTextBounds |
The minimum rectangle needed to contain the text. |
Return Value
A rectangle containing the bounds of the tooltip.
Remarks
Given the bounding rectangle of some text, this function returns the rectangle (in screen coordinates) that is best suited to displaying the tooltip information (uses the current mouse position). You can override this method in a derived class to customize the calculation method.