Skip to content

Latest commit

 

History

History
87 lines (53 loc) · 2.62 KB

wm-paintclipboard.md

File metadata and controls

87 lines (53 loc) · 2.62 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
WM_PAINTCLIPBOARD message (Winuser.h)
Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF\_OWNERDISPLAY format and the clipboard viewer's client area needs repainting.
85aeefa5-e3d9-4689-a068-47b59ec7b571
WM_PAINTCLIPBOARD message Data Exchange
apiref
WM_PAINTCLIPBOARD
Winuser.h
HeaderDef
reference
05/31/2018

WM_PAINTCLIPBOARD message

Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area needs repainting.

#define WM_PAINTCLIPBOARD               0x0309

Parameters

wParam

A handle to the clipboard viewer window.

lParam

A handle to a global memory object that contains a PAINTSTRUCT structure. The structure defines the part of the client area to paint.

Return value

If an application processes this message, it should return zero.

Remarks

To determine whether the entire client area or just a portion of it needs repainting, the clipboard owner must compare the dimensions of the drawing area given in the rcPaint member of PAINTSTRUCT to the dimensions given in the most recent WM_SIZECLIPBOARD message.

The clipboard owner must use the GlobalLock function to lock the memory that contains the PAINTSTRUCT structure. Before returning, the clipboard owner must unlock that memory by using the GlobalUnlock function.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

WM_SIZECLIPBOARD

Conceptual

Clipboard