网站首页  词典首页

请输入您要查询的函数:

 

术语 trackmouseevent
释义 TrackMouseEvent
语法:
BOOL TrackMouseEvent( LPTRACKMOUSEEVENT lpEventTrack
);
TrackMouseEvent函数
在TrackMouseEvent函数职位消息当鼠标指针离开在某一指定的时间窗口一个窗口或徘徊。
参数
lpEventTrack
[中,out]指向1 TRACKMOUSEEVENT结构,它包含跟踪信息。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
该函数可以张贴以下消息。
MessageMeaning
WM_NCMOUSEHOVERWindows 98/Me中时,Windows 2000/XP的:作为本WM_MOUSEHOVER除相同的含义是为窗口的非工作区。
WM_NCMOUSELEAVEWindows 98/Me中时,Windows 2000/XP的:作为WM_MOUSELEAVE相同的意义,除非这是为窗口的非工作区。
WM_MOUSEHOVERThe鼠标悬停在为在先前调用TrackMouseEvent指定时间窗口的工作区。悬停跟踪此消息时停止生成。应用程序必须调用TrackMouseEvent如果需要再进一步跟踪鼠标悬停行为。
WM_MOUSELEAVEThe鼠标左键在先前调用TrackMouseEvent指定的窗口客户区。由TrackMouseEvent要求取消所有的跟踪此消息时生成的。应用程序必须调用TrackMouseEvent当鼠标重新进入它的窗口,如果需要进一步的鼠标悬停行为跟踪。
备注
鼠标指针被认为是徘徊时,在一个特定的矩形停留了一段时间。呼叫SystemParametersInfo。并使用值SPI_GETMOUSEHOVERWIDTH,SPI_GETMOUSEHOVERHEIGHT,并SPI_GETMOUSEHOVERTIME检索矩形的大小和时间。
注意_TrackMouseEvent函数调用TrackMouseEvent如果存在的话,否则_TrackMouseEvent模拟TrackMouseEvent。该_TrackMouseEvent函数是commctrl.h,由COMCTRL32.DLL出口。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低经营systemsWindows 98时,Windows NT 4.0
UnicodeImplemented为Unicode版本。
参见
鼠标输入,SystemParametersInfo,_TrackMouseEvent,TRACKMOUSEEVENT
==英文原文==TrackMouseEvent Function
The TrackMouseEvent function posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time.
Syntax
BOOL TrackMouseEvent( LPTRACKMOUSEEVENT lpEventTrack
);
Parameters
lpEventTrack
[in, out] Pointer to a TRACKMOUSEEVENT structure that contains tracking information.
Return Value
If the function succeeds, the return value is nonzero .
If the function fails, return value is zero. To get extended error information, call GetLastError .
The function can post the following messages.
MessageMeaning
WM_NCMOUSEHOVERWindows 98/Me, Windows 2000/XP: The same meaning as WM_MOUSEHOVER except this is for the nonclient area of the window.
WM_NCMOUSELEAVEWindows 98/Me, Windows 2000/XP: The same meaning as WM_MOUSELEAVE except this is for the nonclient area of the window.
WM_MOUSEHOVERThe mouse hovered over the client area of the window for the period of time specified in a prior call to TrackMouseEvent. Hover tracking stops when this message is generated. The application must call TrackMouseEvent again if it requires further tracking of mouse hover behavior.
WM_MOUSELEAVEThe mouse left the client area of the window specified in a prior call to TrackMouseEvent. All tracking requested by TrackMouseEvent is canceled when this message is generated. The application must call TrackMouseEvent when the mouse reenters its window if it requires further tracking of mouse hover behavior.
Remarks
The mouse pointer is considered to be hovering when it stays within a specified rectangle for a specified period of time. Call SystemParametersInfo . and use the values SPI_GETMOUSEHOVERWIDTH, SPI_GETMOUSEHOVERHEIGHT, and SPI_GETMOUSEHOVERTIME to retrieve the size of the rectangle and the time.
Note The _TrackMouseEvent function calls TrackMouseEvent if it exists, otherwise _TrackMouseEvent emulates TrackMouseEvent. The _TrackMouseEvent function is in commctrl.h and is exported by COMCTRL32.DLL.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 98, Windows NT 4.0
UnicodeImplemented as Unicode version.
See Also
Mouse Input , SystemParametersInfo , _TrackMouseEvent , TRACKMOUSEEVENT
==原始网址==http://msdn.microsoft.com/en-us/library/ms646265(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:22:04