Help Center

CTooltip.WindowFromPointmethod

WindowsmethodCTooltip.incdocumented

Syntax

FUNCTION WindowFromPoint (BYVAL hTooltip AS HWND, BYVAL lppt AS POINT PTR) AS HWND
Also documented as UpdateTipText — one description covers them all.

Parameters

NameDescription
hTooltipThe handle of the Tooltip control.
lptiPointer to a TOOLINFOW structure. The hinst and lpszText members must specify the instance handle and the address of the text. The hwnd and uId members identify the tool to update. The cbSize member of this structure must be filled in before sending this message.
hTooltipThe handle of the Tooltip control.
lpptPointer to a POINT structure that defines the point to be checked.

Return value

The return value is the handle to the window that contains the point, or NULL if no window exists at the specified point.

Description

Sets the tooltip text for a tool.

Remarks

This message is intended to be processed by an application that subclasses a tooltip. It is not intended to be sent by an application. A tooltip sends this message to itself before displaying the text for a window. By changing the coordinates of the point specified by lppt, the subclass procedure can cause the tooltip to display text for a window other than the one beneath the mouse cursor.

Reference

  • Include file CTooltip.inc
  • Defined in AfxNova/CTooltip.inc:110
  • Documented in Windows/WIndows Controls/CTooltip Class.md
  • Topic: CTooltip Class