Help Center

RichEdit_ShowScrollBarsub

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

Windowssubdocumented

Syntax

SUB RichEdit_ShowScrollBar (BYVAL hRichEdit AS HWND, BYVAL nScrollBar AS DWORD, BYVAL fShow AS LONG)

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
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 host window of a rich edit control.

Remarks

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

Reference

  • Defined in AfxNova/AfxRichEdit.inc:1126
  • Documented in Windows/WIndows Controls/RichEdit/RichEdit Procedures.md
  • Topic: RichEdit Procedures