msgs12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WM_VSCROLLCLIPBOARD (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINCLIPBOARD
 
WM_VSCROLLCLIPBOARD
hwndClip = HWNDFROMMP(mp1);    /* handle of clipboard owner */
sPos = SHORT1FROMMP(mp2);      /* slider position           */
usCmd = SHORT2FROMMP(mp2);     /* command                   */
 
The WM_VSCROLLCLIPBOARD message is sent by the clipboard viewer to the
clipboard owner when the clipboard data has the CFI_OWNERDISPLAY attribute
and there is an event in the clipboard viewer's vertical scroll bar. The
owner should scroll the clipboard image, invalidate the appropriate
sections, and update the scroll bar values.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwndClip   Low and high word of mp1. Identifies the clipboard viewer.
 
sPos       Low word of mp2. Specifies the slider position.
 
usCmd      High word of mp2. Specifies the type of command. This parameter
           can be one of the following values:
 
           Value              Meaning
           ─────────────────────────────────────────────────────────────────
           SB_LINEUP          The user clicked the scroll-bar up arrow or
                              pressed the VK_UP key.
 
           SB_LINEDOWN        The user clicked the scroll-bar down arrow or
                              pressed the VK_DOWN key.
 
           SB_PAGEUP          The user clicked the area above the slider or
                              pressed the VK_PAGEUP key.
 
           SB_PAGEDOWN        The user clicked the area below the slider or
                              pressed the VK_PAGEDOWN key.
 
           SB_SLIDERPOSITION  The sPos parameter contains the final position
                              of the slider.
 
           SB_SLIDERTRACK     The user is dragging the slider. This value is
                              sent whenever the slider position changes.
 
           SB_ENDSCROLL       The user has finished scrolling. This value is
                              set only if the user was not doing an absolute
                              slider movement.
 
Return Value
 
An application should return zero if it processes this message.
 
See Also
 
WM_HSCROLLCLIPBOARD, WM_VSCROLL