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
Value |
Meaning |
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. The current position is specified by the nPos parameter. |
SB_TOP |
Scroll to upper left. |
If an application processes this message, it should return zero.
The clipboard owner can use the ScrollWindow function to scroll the image in the clipboard viewer window and invalidate the appropriate region.
file: /Techref/os/win/api/win32/mess/src/msg24_13.htm, 3KB, , updated: 2000/4/7 12:20, local time: 2024/9/3 04:40,
3.149.230.13:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/os/win/api/win32/mess/src/msg24_13.htm"> WM_HSCROLLCLIPBOARD</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.