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::EnableScrollBar
CScrollBar                                  Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  BOOL EnableScrollBar(UINT nArrowFlags = ESB_ENABLE_BOTH );
 
  Parameter     Description
 
  <nArrowFlags> Specifies whether the scroll arrows are enabled or
                disabled, and which arrows are enabled or disabled. This
                parameter can be one of the following values:
 
                Value              Meaning
 
                ESB_ENABLE_BOTH    Enables both arrows of a scroll bar.
 
                ESB_DISABLE_LTUP   Disables the left arrow of a horizontal
                                   scroll bar, or the up arrow of a
                                   vertical scroll bar.
 
                ESB_DISABLE_RTDN   Disables the right arrow of a
                                   horizontal scroll bar, or the down
                                   arrow of a vertical scroll bar.
 
                ESB_DISABLE_BOTH   Disables both arrows of a scroll bar.
 
  Remarks
 
  Enables or disables one or both arrows of a scroll bar.
 
  Return Value
 
  Nonzero if the arrows are enabled or disabled as specified. Otherwise,
  it is 0, which indicates that the arrows are already in the requested
  state or that an error occurred.
 
  See Also
 
  CWnd::EnableScrollBar, CScrollBar::EnableScrollBar
 
 
                                     -♦-