ChangeClipboardChain

Syntax

BOOL ChangeClipboardChain(hWnd,hWndNext)

This function removes the window specified by the hWnd parameter from the chain of clipboard viewers and makes the window specified by the hWndNext parameter the descendant of the hWnd parameter's ancestor in the chain.

Parameter Type/Description  

hWnd HWND Identifies the window that is to be removed from the chain. The handle must previously have been passed to the SetClipboardViewer function.  
hWndNext HWND Identifies the window that follows hWnd in the clipboard-viewer chain (this is the handle returned by the SetClipboardViewer function, unless the sequence was changed in response to a WM_CHANGECBCHAIN message).  

Return Value

The return value specifies the status of the hWnd window. It is nonzero if the window is found and removed. Otherwise, it is zero.