WM_HSCROLLCLIPBOARD

The WM_HSCROLLCLIPBOARD message is 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.

WM_HSCROLLCLIPBOARD 
hwndViewer = (HWND) wParam;         // handle of clipboard viewer window 
nScrollCode = (int) LOWORD(lParam); // scroll bar code 
nPos = (int) HIWORD(lParam);        // scroll box position 
 

Parameters

hwndViewer
Value of wParam. Handle to the clipboard viewer window.
nScrollCode
Value of the low-order word of lParam. Specifies a scroll bar event. This parameter can be one of the following values:
Value Meaning
SB_ENDSCROLL End scroll.
SB_LEFT Scroll to upper left.
SB_RIGHT Scroll to lower right.
SB_LINELEFT Scrolls left by one unit.
SB_LINERIGHT Scrolls right by one unit.
SB_PAGELEFT Scrolls left by the width of the window.
SB_PAGERIGHT Scrolls right by the width of the window.
SB_THUMBPOSITION Scroll to absolute position. The current position is specified by the nPos parameter.

nPos
Value of the high-order word of lParam. Specifies the current position of the scroll box if the nScrollCode parameter is SB_THUMBPOSITION; otherwise, the nPos parameter is not used.

Return Values

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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winuser.h.

See Also

Clipboard Overview, Clipboard Messages, ScrollWindow