术语 | setclipboardviewer |
释义 | SetClipboardViewer 语法: HWND SetClipboardViewer( HWND hWndNewViewer ); SetClipboardViewer功能 该SetClipboardViewer函数将指定的窗口剪贴板观众链。剪贴板查看器窗口收到WM_DRAWCLIPBOARD消息每当剪贴板变化的内容。 参数 hWndNewViewer [in]的窗口句柄要添加到剪贴板链。 返回值 如果函数成功,返回值标识中的剪贴板查看器链的一个窗口。如果发生错误或有在剪贴板查看器链中,没有其他窗口,返回值为NULL。为了获得更多错误信息,调用GetLastError。 备注 窗户属于剪贴板查看器链的一部分,所谓的剪贴板查看器窗口,必须处理剪贴板消息WM_CHANGECBCHAIN和WM_DRAWCLIPBOARD。每个剪贴板查看器窗口调用SendMessage函数传递这些信息中的剪贴板查看器链的一个窗口。 剪贴板查看器窗口最终必须去除剪贴板查看器链调用ChangeClipboardChain功能-例如本身,响应WM_DESTROY消息。 有关示例,请参见添加窗口到剪贴板查看器链。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 3.1 UnicodeImplemented为Unicode版本。 参见 剪贴板,ChangeClipboardChain,GetClipboardViewer,SendMessage消息 ==英文原文==SetClipboardViewer Function The SetClipboardViewer function adds the specified window to the chain of clipboard viewers. Clipboard viewer windows receive a WM_DRAWCLIPBOARD message whenever the content of the clipboard changes. Syntax HWND SetClipboardViewer( HWND hWndNewViewer ); Parameters hWndNewViewer [in] Handle to the window to be added to the clipboard chain. Return Value If the function succeeds, the return value identifies the next window in the clipboard viewer chain. If an error occurs or there are no other windows in the clipboard viewer chain, the return value is NULL. To get extended error information, call GetLastError . Remarks The windows that are part of the clipboard viewer chain, called clipboard viewer windows, must process the clipboard messages WM_CHANGECBCHAIN and WM_DRAWCLIPBOARD. Each clipboard viewer window calls the SendMessage function to pass these messages to the next window in the clipboard viewer chain. A clipboard viewer window must eventually remove itself from the clipboard viewer chain by calling the ChangeClipboardChain function — for example, in response to the WM_DESTROY message. For an example, see Adding a Window to the Clipboard Viewer Chain . 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 Clipboard , ChangeClipboardChain , GetClipboardViewer , SendMessage ==原始网址==http://msdn.microsoft.com/en-us/library/ms649052(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。