Share via


ScrollBarView_t::GetScrollRects (Windows Embedded CE 6.0)

1/6/2010

This method calculates rectangles that are used for drawing and hit testing scroll bars.

Syntax

static int GetScrollRects(
  HWND hwnd,
  RECT* prcBounds,
  RECT* prcUp,
  RECT* prcDn,
  RECT* prcThumb,
  BOOL fVert,
  ScrollBarInfoInternal* psbii
);

Parameters

  • hwnd
    [in] Handle to the window control.
  • prcBounds
    [out] Pointer to a RECT structure that receives the bounding rectangle of the scroll bar window.
  • prcUp
    [out] Pointer to a RECT structure that receives the bounding rectangle of the up arrow.
  • prcDn
    [out] Pointer to a RECT structure that receives the bounding rectangle of the down arrow.
  • prcThumb
    [out] Pointer to a RECT structure that receives the bounding rectangle of the thumb.
  • 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

The return value is one of the following values or a bitwise combination of these values:

  • GSR_NONE
    The method succeeded.
  • GSR_INCPROPTHUMB
    The scroll bar uses a proportional thumb.
  • GSR_DISABLED
    The scroll bar is disabled.
  • GSR_ERROR
    An error occurred.

Requirements

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

See Also

Reference

ScrollBarView_t
ScrollBarInfoInternal
RECT