网站首页  词典首页

请输入您要查询的函数:

 

术语 openclipboard
释义 OpenClipboard
语法:
BOOL OpenClipboard( HWND hWndNewOwner
);
OpenClipboard函数
该OpenClipboard函数打开剪贴板审议并防止修改剪贴板的内容其他应用程序。
参数
hWndNewOwner
[in]的窗口句柄要与公开剪贴板。如果该参数为NULL,则打开剪贴板是与当前任务相关联。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
OpenClipboard失败如果有另一个窗口打开的剪贴板。
应用程序应调用后,每一个成功的调用OpenClipboard的CloseClipboard功能。
由hWndNewOwner参数的确定不会成为剪贴板业主除非EmptyClipboard函数被调用的窗口。
如果一个应用程序调用hwnd设置为NULL OpenClipboard,EmptyClipboard设置为NULL剪贴板人;这将导致SetClipboardData失败。
有关示例,请参见信息复制到剪贴板。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
剪贴板,CloseClipboard,EmptyClipboard
==英文原文==OpenClipboard Function
The OpenClipboard function opens the clipboard for examination and prevents other applications from modifying the clipboard content.
Syntax
BOOL OpenClipboard( HWND hWndNewOwner
);
Parameters
hWndNewOwner
[in] Handle to the window to be associated with the open clipboard. If this parameter is NULL, the open clipboard is associated with the current task.
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
OpenClipboard fails if another window has the clipboard open.
An application should call the CloseClipboard function after every successful call to OpenClipboard.
The window identified by the hWndNewOwner parameter does not become the clipboard owner unless the EmptyClipboard function is called.
If an application calls OpenClipboard with hwnd set to NULL, EmptyClipboard sets the clipboard owner to NULL; 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 , CloseClipboard , EmptyClipboard
==原始网址==http://msdn.microsoft.com/en-us/library/ms649048(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:21:05