CWnd::ShowScrollBar

Syntax

void ShowScrollBar( UINT nBar, BOOL bShow = TRUE );

Parameters

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 CWnd's horizontal and vertical scroll bars.
SB_CTL Specifies that the CWnd is a scroll-bar control.
SB_HORZ Specifies the CWnd's horizontal scroll bar.
SB_VERT Specifies the CWnd's 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