ChangeClipboardChain

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

The ChangeClipboardChain 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.

Parameters

hwnd

Identifies the window that is to be removed from the chain. The handle must previously 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 specifies the status of the hwnd window. It is TRUE if the window is found and removed. Otherwise, it is FALSE.

See Also

SetClipboardViewer