AddClipboardFormatListener function

Places the given window in the system-maintained clipboard format listener list.

Syntax


BOOL WINAPI AddClipboardFormatListener(
  _In_  HWND hwnd
);

Parameters

hwnd [in]

Type: HWND

A handle to the window to be placed in the clipboard format listener list.

Return value

Type: BOOL

Returns TRUE if successful, FALSE otherwise. Call GetLastError for additional details.

Remarks

When a window has been added to the clipboard format listener list, it is posted a WM_CLIPBOARDUPDATE message whenever the contents of the clipboard have changed.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

WM_CLIPBOARDUPDATE
RemoveClipboardFormatListener
GetClipboardSequenceNumber

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.