ITextHost2::TxGetHorzExtent method

Gets the horizontal scroll extent of the text host window.

Syntax


virtual HRESULT TxGetHorzExtent(
   LONG *plHorzExtent
) = 0;

Parameters

plHorzExtent

Type: LONG*

The horizontal scroll extent.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

A rich edit control doesn't use the return value; instead, they get the scroll width from the widest line.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextHost2

 

 

Show: