Partager via


CScrollBar::GetScrollRange

Copies the current minimum and maximum scroll-bar positions for the given scroll bar to the locations specified by lpMinPos and lpMaxPos.

void GetScrollRange(
   LPINT lpMinPos,
   LPINT lpMaxPos 
) const;

Parameters

  • lpMinPos
    Points to the integer variable that is to receive the minimum position.

  • lpMaxPos
    Points to the integer variable that is to receive the maximum position.

Remarks

The default range for a scroll-bar control is empty (both values are 0).

Example

See the example for CWnd::OnHScroll.

Requirements

Header: afxwin.h

See Also

Concepts

CScrollBar Class

CScrollBar Members

Hierarchy Chart

GetScrollRange

CScrollBar::SetScrollRange

CScrollBar::GetScrollPos

CScrollBar::SetScrollPos