Help Center

CRichEditCtx.ShowScrollBarmethod

Shows or hides one of the scroll bars in the Text Host window.

Windowsmethoddocumented

Syntax

SUB ShowScrollBar (BYVAL nScrollBar AS DWORD, BYVAL fShow AS LONG)

Parameters

NameDescription
nScrollBarIdentifies which scroll bar to display: horizontal or vertical. This parameter must be SB_VERT or SB_HORZ.
fShowSpecifies whether to show the scroll bar or hide it. Specify TRUE to show the scroll bar and FALSE to hide it.

Description

Shows or hides one of the scroll bars in the Text Host window.

Remarks

This method is only valid when the control is in-place active. Calls made while the control is inactive may fail.

Reference

  • Defined in AfxNova/CRichEditCtx.inc:3053
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class