win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinSetClipbrdViewer (1.2)
◄Function Group►  ◄Overview►  ◄Message Group►         ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINCLIPBOARD
 
BOOL WinSetClipbrdViewer(hab, hwnd)
HAB hab;      /* handle of the anchor block     */
HWND hwnd;    /* handle of the clipboard viewer */
 
The WinSetClipbrdViewer function sets the current clipboard-viewer window to
a specified window.
 
The clipboard-viewer window receives the WM_DRAWCLIPBOARD message when the
contents of the clipboard change. This allows the viewer window to display
an up-to-date version of the clipboard contents.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies an anchor block.
 
hwnd       Identifies a new clipboard viewer window. If this parameter is
           NULL, the clipboard viewer is released and no new viewer is
           established.
 
Return Value
 
The return value is TRUE if there is a clipboard-viewer window on completion
of the function. Otherwise, it is FALSE, indicating that there is no
clipboard-viewer window.
 
See Also
 
WinQueryClipbrdViewer, WinSetClipbrdOwner
 
                                      ♦