WinQueryClipbrdOwner: Difference between revisions
Appearance
Created page with "This function obtains any current clipboard viewer window. ==Syntax== WinQueryClipbrdViewer( ''hab'' ) ==Parameters== ;hab (HAB) - input :Anchor-block handle. ==Returns=..." |
No edit summary |
||
Line 50: | Line 50: | ||
* [[WinSetClipbrdOwner]] | * [[WinSetClipbrdOwner]] | ||
* [[WinSetClipbrdViewer]] | * [[WinSetClipbrdViewer]] | ||
[[Category: | [[Category:Win]] |
Revision as of 03:48, 24 December 2023
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
Definition:
#define INCL_WINCLIPBOARD /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ HWND hwndClipbrdViewer; /* Current clipboard viewer window handle. */ hwndClipbrdViewer = WinQueryClipbrdViewer(hab);
This example finds out which window currently owns the clipboard.
#define INCL_WINCLIPBOARD #include <OS2.H> HAB hab; /* . */ HWND hwndClipbrdViewer; hwndClipbrdViewer = WinQueryClipbrdViewer(hab);