ITextHost::TxGetScrollBars method

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.

ValueMeaning
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 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextHost
Windowless Rich Edit Controls Overview

 

 

Community Additions

ADD
Show:
© 2014 Microsoft