ITextServices::TxGetVScroll method (textserv.h)

Returns vertical scroll bar state information.

Syntax

HRESULT TxGetVScroll(
  LONG *plMin,
  LONG *plMax,
  LONG *plPos,
  LONG *plPage,
  BOOL *pfEnabled
);

Parameters

plMin

Type: LONG*

The minimum scroll position.

plMax

Type: LONG*

The maximum scroll position.

plPos

Type: LONG*

The current scroll position.

plPage

Type: LONG*

The height of view in pixels.

pfEnabled

Type: BOOL*

Indicates whether the vertical scroll bar is enabled. If TRUE, the vertical scroll bar is enabled; otherwise it is disabled.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK.

If the method fails, the return value is one of the following HRESULT codes. For more information on COM error codes, see Error Handling in COM.

Return code Description
E_FAIL
Unspecified error.
E_INVALIDARG
One or more arguments are not valid.

Requirements

Requirement Value
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

ITextServices

Windowless Rich Edit Controls Overview