Partager via


ScrollBarView_t::ScrollHitTest

This method determines where a specified point is located within a scroll bar.

static SCROLL_STATE ScrollHitTest(
  HWND hwnd,
  POINT pt,
  BOOL fVert,
  ScrollBarInfoInternal* psbii
);

Parameters

  • hwnd
    [in] Handle to the window control.
  • pt
    [in] POINT structure that specifies where the hit occurred.
  • fVert
    [in] Boolean that specifies whether the scroll bar is vertical or horizontal. TRUE specifies that the scroll bar is vertical. FALSE specifies that the scroll bar is horizontal.
  • psbii
    [in] Pointer to a ScrollBarInfoInternal structure that specifies information about the scroll bar.

Return Values

  • SCROLL_DN_PRESS
    Down arrow is pressed.
  • SCROLL_NEXT_FREE
    Method that draws the scroll bar is free to draw the next state.
  • SCROLL_NO_PRESS
    No arrow is pressed.
  • SCROLL_PGDN_PRESS
    Page down arrow is pressed.
  • SCROLL_PGUP_PRESS
    Page up arrow is pressed.
  • SCROLL_SLIDE_PRESS
    Slider is pressed.
  • SCROLL_UNAVAIL
    Scroll bar is unavailable.
  • SCROLL_UP_PRESS
    Up arrow is pressed.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Scrollview.hpp.

See Also

ScrollBarInfoInternal | SCROLL_STATE

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.