WM_HSCROLLCLIPBOARD message

Sent to the clipboard owner by a clipboard viewer window. This occurs when the clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's horizontal scroll bar. The owner should scroll the clipboard image and update the scroll bar values.


#define WM_HSCROLLCLIPBOARD             0x030E

Parameters

wParam

A handle to the clipboard viewer window.

lParam

The low-order word of lParam specifies a scroll bar event. This parameter can be one of the following values. The high-order word of lParam specifies the current position of the scroll box if the low-order word of lParam is SB_THUMBPOSITION; otherwise, the high-order word is not used.

ValueMeaning
SB_ENDSCROLL
8

End scroll.

SB_LEFT
6

Scroll to upper left.

SB_RIGHT
7

Scroll to lower right.

SB_LINELEFT
0

Scrolls left by one unit.

SB_LINERIGHT
1

Scrolls right by one unit.

SB_PAGELEFT
2

Scrolls left by the width of the window.

SB_PAGERIGHT
3

Scrolls right by the width of the window.

SB_THUMBPOSITION
4

Scroll to absolute position. The current position is specified by the high-order word.

 

Return value

If an application processes this message, it should return zero.

Remarks

The clipboard owner can use the ScrollWindow function to scroll the image in the clipboard viewer window and invalidate the appropriate region.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
HIWORD
LOWORD
Conceptual
Clipboard
Other Resources
ScrollWindow

 

 

Community Additions

ADD
Show: