We have a TListView with ShowHint
enabled. In the OnInfoTip
handler, a hint message is constructed that is specific to the item over which the mouse is hovering. The message may include newline (#13#10) characters.
An override has been created to process CM_HINTSHOW
messages and the hint message about to be displayed can be seen in msg.HintInfo.HintStr
. It may be possible to calculate the size at runtime but this seems risky because the implementation details may be complex or platform-dependent.
Can the THintInfo
be queried for its' bounding rectangle or is there another way to determine exactly how big the popup hint message will be when it is displayed?
This is required so an exact position of the hint (msg.HintInfo.HintPos
) can be set.