Jump to content

WM HSCROLLCLIPBOARD

From EDM2
Revision as of 22:42, 13 April 2025 by Martini (talk | contribs) (Created page with "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 horizontal scroll bar. ==Syntax== <PRE> param1 HWND hwndViewer; Handle.: param2 SHORT sposScroll; Scroll position.: SHORT scodeScroll; Scroll-bar code.: </PRE> ==Parameters== ;hwndViewer (HWND) - Input : This contains a handle to the clipboard application win...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 horizontal scroll bar.

Syntax

param1
    HWND    hwndViewer;  /* Handle. */

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

Parameters

hwndViewer (HWND) - Input
This contains a handle to the clipboard application window.
sposScroll (SHORT) - Input
Scroll position. The position is either:
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_HSCROLL (in Horizontal Scroll Bars):
SB_LINELEFT
Sent if the operator clicks the left arrow of the scroll bar, or presses the VK_LEFT key.
SB_LINERIGHT
Sent if the operator clicks the right arrow of the scroll bar, or presses the VK_RIGHT key.
SB_PAGELEFT
Sent if the operator clicks the area to the left of the slider, or presses the VK_PAGELEFT key.
SB_PAGERIGHT
Sent if the operator clicks the area to the right of the slider, or presses the VK_PAGERIGHT key.
SB_SLIDERPOSITION
Sent to indicate the final position of the slider. sposScroll contains the final position of the slider.
SB_SLIDERTRACK
Sent every time the slider position changes if the operator moves the scroll bar slider with the pointer device.
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.