_TrackMouseEvent function (commctrl.h)

Posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time. This function calls TrackMouseEvent if it exists, otherwise it emulates it.

Syntax

BOOL _TrackMouseEvent(
  [in, out] LPTRACKMOUSEEVENT lpEventTrack
);

Parameters

[in, out] lpEventTrack

Type: LPTRACKMOUSEEVENT

A pointer to a TRACKMOUSEEVENT structure that contains tracking information.

Return value

Type: BOOL

If the function succeeds, the return value is nonzero.

If the function fails, return value is zero.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header commctrl.h
Library Comctl32.lib
DLL Comctl32.dll

See also

Conceptual

Mouse Input

Other Resources

Reference

SystemParametersInfo

TRACKMOUSEEVENT

TrackMouseEvent