ChangeClipboardChain

2.x

  BOOL ChangeClipboardChain(hwnd, hwndNext)    
  HWND hwnd; /* handle of window to remove */
  HWND hwndNext; /* handle of next window */

The ChangeClipboardChain function removes the window identified by the hwnd parameter from the chain of clipboard viewers and makes the window identified by the hwndNext parameter the descendant of the hwnd parameter's ancestor in the chain.

Parameters

hwnd

Identifies the window that is to be removed from the chain. The handle must have been passed to the SetClipboardViewer function.

hwndNext

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 is nonzero if the function is successful. Otherwise, it is zero.

See Also

SetClipboardViewer