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_HSCROLLCLIPBOARD (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINCLIPBOARD
 
WM_HSCROLLCLIPBOARD
hwndClip = HWNDFROMMP(mp1);    /* handle of clipboard owner */
sPos = SHORT1FROMMP(mp2);      /* slider position           */
usCmd = SHORT2FROMMP(mp2);     /* command                   */
 
The WM_HSCROLLCLIPBOARD 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 horizontal 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_LINELEFT        The user clicked the left scroll-bar arrow or
                              pressed the VK_LEFT key.
 
           SB_LINERIGHT       The user clicked the right scroll-bar arrow or
                              pressed the VK_RIGHT key.
 
           SB_PAGELEFT        The user clicked the area to the left of the
                              slider.
 
           SB_PAGERIGHT       The user clicked the area to the right of the
                              slider.
 
           SB_SLIDERPOSITION  The sPos parameter contains the final position
                              of the slider.
 
           SB_SLIDERTRACK     The user is dragging the slider. This value is
                              sent every time 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_HSCROLL, WM_VSCROLLCLIPBOARD
 
                                      ♦