WM_HSCROLLCLIPBOARD

This message is sent when the clipboard contains a data handle for the CF_OWNERDISPLAY format (specifically the clipboard owner should display the clipboard contents) and an event occurs in the clipboard application's horizontal scroll bar.

Parameters

wParam

Contains a handle to the clipboard application window.

lParam

Contains one of the following scroll-bar codes in the low-order word:

Value Description

SB_BOTTOM Scroll to lower right.
SB_ENDSCROLL End scroll.
SB_LINEDOWN Scroll one line down.
SB_LINEUP Scroll one line up.
SB_PAGEDOWN Scroll one page down.
SB_PAGEUP Scroll one page up.
SB_THUMBPOSITION Scroll to absolute position.
SB_TOP Scroll to upper left.

The high-order word of the lParam parameter contains the thumb position if the scroll-bar code is SB_THUMBPOSITION. Otherwise, the high-order word is not used.

Comments

The clipboard owner should use the InvalidateRect function or repaint as desired. The scroll-bar position should also be reset.

See Also

InvalidateRect