网站首页  词典首页

请输入您要查询的函数:

 

术语 dragdetect
释义 DragDetect
语法:
BOOL DragDetect( HWND hwnd,
POINT pt
);
DragDetect功能
该DragDetect函数捕获鼠标并跟踪其运动,直到用户释放左边的按钮,按下ESC键,或移动周围以外的指定的点鼠标拖动矩形。宽度和高度拖动矩形指定的SM_CXDRAG和SM_CYDRAG价值观GetSystemMetrics函数返回。
参数
hwnd
[in]的窗口句柄接收鼠标输入。

[in]鼠标的初始位置,在屏幕坐标。函数决定了拖动矩形坐标利用这一点。
返回值
如果用户在移出拖动矩形按住鼠标左键,则返回值为非零。
如果用户不动外拖动矩形按住鼠标左键,返回值是零。
备注
矩形的拖动系统指标是可配置的,较大或较小的拖动矩形允许。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 4.0
参见
鼠标输入,GetSystemMetrics
==英文原文==DragDetect Function
The DragDetect function captures the mouse and tracks its movement until the user releases the left button, presses the ESC key, or moves the mouse outside the drag rectangle around the specified point. The width and height of the drag rectangle are specified by the SM_CXDRAG and SM_CYDRAG values returned by the GetSystemMetrics function.
Syntax
BOOL DragDetect( HWND hwnd,
POINT pt
);
Parameters
hwnd
[in] Handle to the window receiving mouse input.
pt
[in] Initial position of the mouse, in screen coordinates. The function determines the coordinates of the drag rectangle by using this point.
Return Value
If the user moved the mouse outside of the drag rectangle while holding down the left button, the return value is nonzero.
If the user did not move the mouse outside of the drag rectangle while holding down the left button, the return value is zero.
Remarks
The system metrics for the drag rectangle are configurable, allowing for larger or smaller drag rectangles.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 4.0
See Also
Mouse Input , GetSystemMetrics
==原始网址==http://msdn.microsoft.com/en-us/library/ms646256(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:29:52