Jump to content

WM VSCROLLCLIPBOARD

From EDM2

This message is sent to the clipboard owner window when the clipboard contains a data handle for the CFI_OWNERDISPLAY format, and there is an event in the clipboard viewer's vertical scroll bar.

Syntax

param1
    HWND   hwndViewer;  /* Handle. */

param2
    SHORT  sposScroll;  /* Scroll position. */
    SHORT  scodeScroll; /* Scroll-bar code. */

Parameters

hwndViewer (HWND) - input
Handle to the clipboard application window.
sposScroll (SHORT) - input
Scroll position.
0: scodeScroll is other than SB_SLIDERPOSITION
Other: The position of the slider when scodeScroll is SB_SLIDERPOSITION.
scodeScroll (SHORT) - input
Scroll-bar code. This is one of the SB_* scroll-bar codes as defined in WM_VSCROLL.
SB_LINEUP: Sent if the operator clicks on the up arrow of the scroll bar, or presses the VK_UP key.
SB_LINEDOWN: Sent if the operator clicks on the down arrow of the scroll bar, or presses the VK_DOWN key.
SB_PAGEUP: Sent if the operator clicks on the area above the slider, or presses the VK_PAGEUP key.
SB_PAGEDOWN: Sent if the operator clicks on the area below the slider, or presses the VK_PAGEDOWN key.
SB_SLIDERPOSITION: Sent to indicate the final position of the slider.
SB_SLIDERTRACK: If the operator moves the scroll bar slider with the pointer device, this is sent every time the slider position changes.
SB_ENDSCROLL: Sent when the operator has finished scrolling, but only if the operator has not been doing any absolute slider positioning.

Returns

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

Remarks

The clipboard owner is responsible for displaying the clipboard contents. The clipboard owner should use WinInvalidateRect or repaint as desired. The scroll bar position is also reset.

Default Processing

None.