Partager via


ScrollBarView_t::GetScrollRects

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

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 Values

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

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

See Also

ScrollBarInfoInternal | RECT

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.