共用方式為


CWnd::GetScrollLimit

Call this member function to retrieve the maximum scrolling position of the scroll bar.

int GetScrollLimit(
   int nBar 
);

Parameters

  • nBar
    Specifies the type of scroll bar. The parameter can take one of the following values:

    • SB_HORZ   Retrieves the scroll limit of the horizontal scroll bar.

    • SB_VERT   Retrieves the scroll limit of the vertical scroll bar.

Return Value

Specifies the maximum position of a scroll bar if successful; otherwise 0.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart

CScrollBar::GetScrollLimit

Concepts

CWnd Members