WM_HSCROLLCLIPBOARD

2.x

WM_HSCROLLCLIPBOARD
hwndCBViewer = (HWND) wParam;   /* handle of clipboard viewer */
wScrollCode = LOWORD(lParam);   /* scroll bar code            */
nPos = (int) HIWORD(lParam);    /* scroll box position        */

The WM_HSCROLLCLIPBOARD message is sent by the clipboard viewer to the clipboard owner when the clipboard data has the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's horizontal scroll bar. The owner should scroll the clipboard image, invalidate the appropriate section, and update the scroll bar values.

Parameters

hwndCBViewer

Value of wParam. Identifies a clipboard-viewer window.

wScrollCode

Value of the low-order word of lParam. Specifies a scroll bar code. This parameter can be one of the following values:

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.

nPos

Value of the high-order word of lParam. Specifies the scroll box position if the scroll bar code is SB_THUMBPOSITION; otherwise, the high-order word of lParam is not used.

Return Value

An application should return zero if it processes this message.

Comments

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

See Also

InvalidateRect, WM_VSCROLLCLIPBOARD