Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


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

int GetScrollLimit( 
   int 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.

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

Header: afxwin.h

Community Additions

© 2015 Microsoft