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.
CWnd::ShowScrollBar
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void ShowScrollBar( UINT nBar, BOOL bShow = TRUE );
 
  Parameter   Description
 
  <nBar>      Specifies whether the scroll bar is a control or part of a
              window's nonclient area. If it is part of the nonclient
              area, <nBar> also indicates whether the scroll bar is
              positioned horizontally, vertically, or both. It must be one
              of the following values:
 
              Value     Meaning
 
              SB_BOTH   Specifies the the CWnd horizontal and vertical
                        scroll bars.
 
              SB_CTL    Specifies that the CWnd is a scroll-bar control.
 
              SB_HORZ   Specifies the the CWnd horizontal scroll bar.
 
              SB_VERT   Specifies the the CWnd vertical scroll bar.
 
  <bShow>     Specifies whether or not Windows hides the scroll bar. If
              <bShow> is FALSE, the scroll bar is hidden. Otherwise, the
              scroll bar is displayed.
 
  Remarks
 
  Displays or hides a scroll bar, depending on the value of <bShow>. If
  <bShow> is TRUE, the scroll bar is displayed; if FALSE, the scroll bar
  is hidden.
 
  See Also
 
  ::ShowScrollBar
 
 
                                     -♦-