Jump to content

WM PAINTCLIPBOARD: Difference between revisions

From EDM2
Created page with "This message is sent when the clipboard contains a data handle with the CFI_OWNERDISPLAY information flag set. ==Syntax== {{code| param1 HWND hwndViewer; Handle.: param2 ULONG ulReserved; Reserved value, should be 0.: }} ==Parameters== ;hwndViewer (HWND) - Input : Handle to the clipboard application window. ;ulReserved (ULONG) - Input : Reserved value, should be 0. ==Returns== ;ulReserved (ULONG) - returns : Reserved value, should..."
 
No edit summary
 
Line 1: Line 1:
This message is sent when the clipboard contains a data handle with the CFI_OWNERDISPLAY information flag set.
This message is sent when the clipboard contains a data handle with the CFI_OWNERDISPLAY information flag set.
==Syntax==
==Syntax==
{{code|
<PRE>
param1
param1
     HWND    hwndViewer;  /* Handle. */
     HWND    hwndViewer;  /* Handle. */
Line 7: Line 7:
param2
param2
     ULONG  ulReserved;  /* Reserved value, should be 0. */
     ULONG  ulReserved;  /* Reserved value, should be 0. */
}}
</PRE>


==Parameters==
==Parameters==

Latest revision as of 22:04, 13 April 2025

This message is sent when the clipboard contains a data handle with the CFI_OWNERDISPLAY information flag set.

Syntax

param1
    HWND    hwndViewer;  /* Handle. */

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

Parameters

hwndViewer (HWND) - Input
Handle to the clipboard application window.
ulReserved (ULONG) - Input
Reserved value, should be 0.

Returns

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

Remarks

As the clipboard owner is responsible for displaying the clipboard contents, this message notifies the clipboard application that its client area needs repainting. The WM_PAINTCLIPBOARD message is sent to the owner of the clipboard to request repainting of all or part of the client area of the clipboard application.

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

Default Processing

None.