ITextServices::TxGetVScroll method

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 codeDescription
E_FAIL

Unspecified error.

E_INVALIDARG

One or more arguments are not valid.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextServices
Windowless Rich Edit Controls Overview

 

 

Show: