Jump to content

WM SIZECLIPBOARD

From EDM2

This message is sent when the clipboard contains a data handle for the CFI_OWNERDISPLAY format, and the clipboard application window has changed size.

Syntax

param1
    HWND    hwndViewer;    /* Handle of viewer window. */

param2
    PRECTL  ppaint;      /* Rectangle to be re-painted. */

Parameters

hwndViewer (HWND) - Input
Handle of viewer window.
ppaint (PRECTL) - Input
Rectangle to be re-painted.

Returns

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

Remarks

The clipboard application sends the WM_SIZECLIPBOARD message to the clipboard owner when the size of the clipboard-viewer window has changed. This message is sent only if the clipboard owner has placed data on the clipboard in the CFI_OWNERDISPLAY format.

The clipboard owner should use the coordinates in the specified rectangle to repaint its image. This is necessary because the image might be scaled to fit the new window size.

Default Processing

The default window procedure takes no action on this message except to set ulReserved to 0.