网站首页  词典首页

请输入您要查询的函数:

 

术语 copycursor
释义 CopyCursor
语法:
HCURSOR CopyCursor( HCURSOR pcur
);
CopyCursor函数
该CopyCursor函数复制指定的光标。
参数
pcur
[in]光标句柄要复制。
返回值
如果函数成功,返回值是重复的句柄光标。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
该CopyCursor功能使应用程序或DLL,以获取句柄光标形状的另一个模块拥有。然后,如果其他的模块被释放,应用程序仍然可以使用光标形状。
在结束前,应用程序必须调用DestroyCursor函数来释放任何系统与光标相关的资源。
不要使用动画光标的CopyCursor功能。相反,使用CopyImage功能。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
游标概述,CopyIcon,CopyImage,DestroyCursor,GetCursor,SetCursor,ShowCursor
==英文原文==CopyCursor Function
The CopyCursor function copies the specified cursor.
Syntax
HCURSOR CopyCursor( HCURSOR pcur
);
Parameters
pcur
[in] Handle to the cursor to be copied.
Return Value
If the function succeeds, the return value is the handle to the duplicate cursor.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
The CopyCursor function enables an application or DLL to obtain the handle to a cursor shape owned by another module. Then if the other module is freed, the application is still able to use the cursor shape.
Before closing, an application must call the DestroyCursor function to free any system resources associated with the cursor.
Do not use the CopyCursor function for animated cursors. Instead, use the CopyImage 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
See Also
Cursors Overview , CopyIcon , CopyImage , DestroyCursor , GetCursor , SetCursor , ShowCursor
==原始网址==http://msdn.microsoft.com/en-us/library/ms648384(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:25:52