网站首页  词典首页

请输入您要查询的函数:

 

术语 getcapture
释义 GetCapture
语法:
HWND GetCapture(VOID);
Return Value
The return value is a handle to the capture window associated with the current thread. If no window in the thread has captured the mouse, the return value is NULL.
Remarks
A NULL return value means the current thread has not captured the mouse. However, it is possible that another thread or process has captured the mouse.
Windows 98/Me, Windows NT 4.0 SP3 and later: To get a handle to the capture window on another thread, use the GetGUIThreadInfo function.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Mouse Input , GetGUIThreadInfo , ReleaseCapture , SetCapture
GetCapture功能
该GetCapture函数检索窗口句柄(如果有的话)抓住了鼠标。一次只能有一个时间窗口可以捕获鼠标,这个窗口接收鼠标输入是否光标在其境内。
==英文原文==GetCapture Function
The GetCapture function retrieves a handle to the window (if any) that has captured the mouse. Only one window at a time can capture the mouse; this window receives mouse input whether or not the cursor is within its borders.
Syntax
HWND GetCapture(VOID);
Return Value
The return value is a handle to the capture window associated with the current thread. If no window in the thread has captured the mouse, the return value is NULL.
Remarks
A NULL return value means the current thread has not captured the mouse. However, it is possible that another thread or process has captured the mouse.
Windows 98/Me, Windows NT 4.0 SP3 and later: To get a handle to the capture window on another thread, use the GetGUIThreadInfo function.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Mouse Input , GetGUIThreadInfo , ReleaseCapture , SetCapture
==原始网址==http://msdn.microsoft.com/en-us/library/ms646257(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 11:30:31