ScrollBarView_t::GetScrollRects (Compact 2013)

3/28/2014

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
);

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.

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.

Header

scrollview.hpp

Show: