Jump to content

WM DRAWCLIPBOARD

From EDM2
Revision as of 22:19, 13 April 2025 by Martini (talk | contribs) (Created page with "This message is sent to the clipboard viewer window whenever the contents of the clipboard change; that is, as a result of the WinCloseClipbrd function following a call to WinSetClipbrdData. ==Syntax== <PRE> param1 ULONG ulReserved; Reserved value, should be 0.: param2 ULONG ulReserved; Reserved value, should be 0.: </PRE> ==Parameters== ;ulReserved (ULONG) - Input : Reserved value, should be 0. ;ulReserved (ULONG) - Input : Rese...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent to the clipboard viewer window whenever the contents of the clipboard change; that is, as a result of the WinCloseClipbrd function following a call to WinSetClipbrdData.

Syntax

param1
    ULONG   ulReserved;  /* Reserved value, should be 0. */

param2
    ULONG   ulReserved;  /* Reserved value, should be 0. */

Parameters

ulReserved (ULONG) - Input
Reserved value, should be 0.
ulReserved (ULONG) - Input
Reserved value, should be 0.

Returns

ulReserved (ULONG) - returns
Reserved value, should be 0.

Remarks

When the clipboard contents change, the system sends a WM_DRAWCLIPBOARD message to the first window in the clipboard viewer chain. This window then sends the message to the next window in the chain by calling the WinSendMsg function. This continues until the last window in the chain is reached.

A clipboard viewer window must process this message by redrawing its client area. It should also pass the message on to the next clipboard viewer in the chain.

Default Processing

None.