网站首页  词典首页

请输入您要查询的函数:

 

术语 emptyclipboard
释义 EmptyClipboard
语法:
BOOL EmptyClipboard( VOID
);
EmptyClipboard函数
该EmptyClipboard函数清空剪贴板,释放句柄在剪贴板数据。然后函数分配权的剪贴板的窗口,目前有打开的剪贴板。
参数
这个函数没有参数。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在调用EmptyClipboard,应用程序必须公开使用OpenClipboard函数剪贴板。如果应用程序指定一个窗口句柄空当打开剪贴板EmptyClipboard成功,但剪贴板所有者设置为NULL。请注意,这将导致SetClipboardData失败。
有关示例,请参见信息复制到剪贴板。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
剪贴板,OpenClipboard,SetClipboardData,WM_DESTROYCLIPBOARD
==英文原文==EmptyClipboard Function
The EmptyClipboard function empties the clipboard and frees handles to data in the clipboard. The function then assigns ownership of the clipboard to the window that currently has the clipboard open.
Syntax
BOOL EmptyClipboard( VOID
);
Parameters
This function has no parameters.
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
Before calling EmptyClipboard, an application must open the clipboard by using the OpenClipboard function. If the application specifies a NULL window handle when opening the clipboard, EmptyClipboard succeeds but sets the clipboard owner to NULL. Note that this causes SetClipboardData to fail.
For an example, see Copying Information to the Clipboard .
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
Clipboard , OpenClipboard , SetClipboardData , WM_DESTROYCLIPBOARD
==原始网址==http://msdn.microsoft.com/en-us/library/ms649037(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:28:26