uTools-Manuals/src/docs/win32api/1/DragDetect.html
2020-06-29 01:56:42 +08:00

16 lines
1012 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<body>
<h3>函数功能</h3>该函数捕获并跟踪鼠标的移动直到用户松开左键、按下Esc。键或者将鼠标移动到围绕指定点的“拖动矩形”之外。拖动矩形的宽和高由函数GetSystemMetrics返回的SM_CXDRAG或SM_CYDRAG确定。<br>
<h3>函数原型</h3>BOOL DragDetectHWND hwndPOINT pt<br>
<h3>参数</h3>
hwnd接受鼠标输入的窗口的句柄。<br>
pt鼠标在屏幕坐标下的初始位置此函数根据这个点来确定拖动矩形的坐标。<br>
<h3>返回值</h3>如果用户在按着鼠标左键时将鼠标移出了拖动矩形之外,则返回非零值;如果用户按着鼠标左键在拖动内移动鼠标,则返回值是零。<br>
备注:拖动矩形的系统度量是可构造的,允许更大或更小的拖动矩形。<br>
<h3>速查</h3>Windows NT 4.0及以上版本Windows95及以上版本Windows CE不支持头文件winuser.h输入库user32.lib。<br>
</body>
</html>