Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CScrollBar::SetScrollRange
CScrollBar                                  Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void SetScrollRange( int nMinPos, int nMaxPos, BOOL bRedraw = TRUE );
 
  Parameter   Description
 
  <nMinPos>   Specifies the minimum scrolling position.
 
  <nMaxPos>   Specifies the maximum scrolling position.
 
  <bRedraw>   Specifies whether the scroll bar should be redrawn to
              reflect the change. If <bRedraw> is TRUE, the scroll bar is
              redrawn; if FALSE, it is not redrawn. It is redrawn by
              default.
 
  Remarks
 
  Sets minimum and maximum position values for the given scroll bar. Set
  <nMinPos> and <nMaxPos> to 0 to hide or show standard scroll bars.
 
  Do not call this function to hide a scroll bar while processing a
  scroll-bar notification message.
 
  If a call to SetScrollRange immediately follows a call to the
  SetScrollPos member function, set <bRedraw> to SetScrollPos to 0 to
  prevent the scroll bar from being redrawn twice.
 
  The difference between the values specified by <nMinPos> and <nMaxPos>
  must not be greater than 32,767.
 
  See Also
 
  CScrollBar::SetScrollPos, CScrollBar::GetScrollRange,
  ::SetScrollRange
 
 
                                     -♦-