◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── #define INCL_WINMESSAGEMGR WM_HSCROLL id = SHORT1FROMMP(mp1); /* control-window identifier */ sPos = SHORT1FROMMP(mp2); /* slider position */ usCmd = SHORT2FROMMP(mp2); /* command */ The WM_HSCROLL message is posted to the owner of a horizontal scroll-bar window when an event occurs. Parameter Description ──────────────────────────────────────────────────────────────────────────── id Low word of mp1. Identifies the scroll-bar window. 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 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 ♦