网站首页  词典首页

请输入您要查询的函数:

 

术语 getclipcursor
释义 GetClipCursor
语法:
BOOL GetClipCursor( LPRECT lpRect
);
GetClipCursor功能
该GetClipCursor函数检索屏幕的矩形区域的光标限于坐标。
参数
lpRect
[out]指向一个RECT结构,它接收的屏幕坐标的限制范围的矩形。结构接收屏幕上的光标,如果不局限于一个矩形尺寸。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
光标是一个共享资源。如果应用范围与ClipCursor函数光标,它必须释放被后来才决定放弃使用ClipCursor到另一个应用程序的控制光标。
调用进程必须具有WINSTA_READATTRIBUTES访问窗口站。
例如
有关示例,见围游标。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
游标概述,ClipCursor,GetCursorPos,RECT
==英文原文==GetClipCursor Function
The GetClipCursor function retrieves the screen coordinates of the rectangular area to which the cursor is confined.
Syntax
BOOL GetClipCursor( LPRECT lpRect
);
Parameters
lpRect
[out] Pointer to a RECT structure that receives the screen coordinates of the confining rectangle. The structure receives the dimensions of the screen if the cursor is not confined to a rectangle.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The cursor is a shared resource. If an application confines the cursor with the ClipCursor function, it must later release the cursor by using ClipCursor before relinquishing control to another application.
The calling process must have WINSTA_READATTRIBUTES access to the window station.
Example
For an example, see Confining a Cursor .
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
Cursors Overview , ClipCursor , GetCursorPos , RECT
==原始网址==http://msdn.microsoft.com/en-us/library/ms648387(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:17