Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CWnd::GetScrollPos
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int GetScrollPos( int nBar ) const;
 
  Parameter   Description
 
  <nBar>      Specifies the scroll bar to examine. The parameter can take
              one of the following values:
 
              Value     Meaning
 
              SB_CTL    Retrieves the position of a scroll-bar control.
 
              SB_HORZ   Retrieves the position of the CWnd horizontal
                        scroll bar.
 
              SB_VERT   Retrieves the position of the CWnd vertical scroll
                        bar.
 
  Remarks
 
  Retrieves the current position of a scroll box. The current position is
  a relative value that depends on the current scrolling range. For
  example, if the scrolling range is 50 to 100 and the thumb is in the
  middle of the bar, the current position is 75.
 
  Return Value
 
  Specifies the current position of the scroll box.
 
  See Also
 
  ::GetScrollPos
 
 
                                     -♦-