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.
WinSetClipbrdOwner (1.2)
Function Group  Overview  Message Group         Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINCLIPBOARD
 
BOOL WinSetClipbrdOwner(hab, hwnd)
HAB hab;      /* handle of the anchor block    */
HWND hwnd;    /* handle of the clipboard owner */
 
The WinSetClipbrdOwner function sets the current clipboard owner window. The
clipboard owner window receives the following clipboard-related messages at
appropriate times:
 
     WM_RENDERFMT
     WM_DESTROYCLIPBOARD
     WM_SIZECLIPBOARD
     WM_VSCROLLCLIPBOARD
     WM_HSCROLLCLIPBOARD
     WM_PAINTCLIPBOARD
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies an anchor block.
 
hwnd       Identifies a new clipboard owner window. If this parameter is
           NULL, the clipboard owner is released and no new owner is
           established.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinQueryClipbrdOwner, WinSetClipbrdViewer