WinQueryClipbrdOwner: Difference between revisions
Appearance
mNo edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
==Parameters== | ==Parameters== | ||
;hab (HAB) - input:Anchor-block handle. | ;''hab'' (HAB) - input:Anchor-block handle. | ||
==Returns== | ==Returns== | ||
;hwndClipbrdViewer (HWND) - returns:Current clipboard viewer window handle. | ;''hwndClipbrdViewer'' (HWND) - returns:Current clipboard viewer window handle. | ||
::NULLHANDLE: Clipboard does not have a current viewer window, or an error occurred | ::NULLHANDLE: Clipboard does not have a current viewer window, or an error occurred | ||
::Other: Current clipboard viewer window handle. | ::Other: Current clipboard viewer window handle. | ||
Line 31: | Line 31: | ||
* [[WinQueryClipbrdData]] | * [[WinQueryClipbrdData]] | ||
* [[WinQueryClipbrdFmtInfo]] | * [[WinQueryClipbrdFmtInfo]] | ||
* [[WinSetClipbrdData]] | * [[WinSetClipbrdData]] | ||
* [[WinSetClipbrdOwner]] | * [[WinSetClipbrdOwner]] |
Latest revision as of 19:12, 10 April 2025
This function obtains any current clipboard viewer window.
Syntax
WinQueryClipbrdViewer( hab )
Parameters
- hab (HAB) - input
- Anchor-block handle.
Returns
- hwndClipbrdViewer (HWND) - returns
- Current clipboard viewer window handle.
- NULLHANDLE: Clipboard does not have a current viewer window, or an error occurred
- Other: Current clipboard viewer window handle.
Example Code
This example finds out which window currently owns the clipboard.
#define INCL_WINCLIPBOARD #include <os2.h> HAB hab; /* . */ HWND hwndClipbrdViewer; hwndClipbrdViewer = WinQueryClipbrdViewer(hab);