TTM_WINDOWFROMPOINT message

Allows a subclass procedure to cause a tooltip to display text for a window other than the one beneath the mouse cursor.

Parameters

wParam

Must be zero.

lParam

Pointer 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.

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 lParam, the subclass procedure can cause the tooltip to display text for a window other than the one beneath the mouse cursor.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h