WM_VSCROLLCLIPBOARD
hwndViewer = (HWND) wParam; /* handle of clipboard viewer */
wScrollCode = LOWORD(lParam); /* scroll bar code */
wThumbPos = 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 there is an event in the clipboard viewer's vertical scroll bar. The owner should scroll the clipboard image, invalidate the appropriate section, and update the scroll bar values.
hwndViewer
Value of wParam. Specifies a handle to a clipboard-viewer window.
wScrollCode
Value of the low-order word of lParam. Specifies one of the following scroll bar 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. |
wThumbPos
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 is not used.
An application should return zero if it processes this message.
The clipboard owner should use the InvalidateRect function or repaint the window as needed. The scroll bar position should also be reset.