ITextHost::TxGetScrollBars method (textserv.h)

Requests information about the scroll bars supported by the text host.

Syntax

HRESULT TxGetScrollBars(
  DWORD *pdwScrollBar
);

Parameters

pdwScrollBar

Type: DWORD*

The scroll bar. This parameter can be a combination of the following window styles related to scroll bars.

Value Meaning
WS_VSCROLL
Supports a vertical scroll bar.
WS_HSCROLL
Supports a horizontal scroll bar.
ES_AUTOVSCROLL
Automatically scrolls text up one page when the user presses ENTER on the last line.
ES_AUTOHSCROLL
Automatically scrolls text to the right by 10 characters when the user types a character at the end of the line. When the user presses ENTER, the control scrolls all text back to position zero.
ES_DISABLENOSCROLL
Disables scroll bars instead of hiding them when they are not needed.

Return value

Type: HRESULT

The return value is S_OK.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header textserv.h
DLL Msftedit.dll

See also

ITextHost

Windowless Rich Edit Controls Overview