WM_ASKCBFORMATNAME

2.x

WM_ASKCBFORMATNAME
wParam = (WPARAM) cbMax;            /* maximum bytes to copy  */
lParam = (LPARAM) lpszFormatName;   /* address of format name */

A clipboard viewer application sends a WM_ASKCBFORMATNAME message to the clipboard owner when the clipboard contains the data handle of the CF_OWNERDISPLAY format (that is, when the clipboard owner should display the clipboard contents).

Parameters

cbMax

Value of wParam. Specifies the maximum number of bytes to copy.

lpszFormatName

Value of lParam. Points to the buffer where the copy of the format name is to be stored.

Return Value

An application should return zero if it processes this message.

Comments

The clipboard owner should copy the name of the CF_OWNERDISPLAY format into the specified buffer, not exceeding the maximum number of bytes.

See Also

WM_PAINTCLIPBOARD