Partager via


ScrollBarView_t::ScrollHitTest (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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 Value

  • 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

Header scrollview.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

ScrollBarView_t
ScrollBarInfoInternal
SCROLL_STATE