ITextServices::TxGetCachedSize method (textserv.h)

Returns the cached drawing logical size (if any) that text services is using. Typically, this will be the size of the last client rectangle used in ITextServices::TxDraw, ITextServices::OnTxSetCursor, and so forth, although it is not guaranteed to be.

Syntax

HRESULT TxGetCachedSize(
  [in] DWORD *pdwWidth,
  [in] DWORD *pdwHeight
);

Parameters

[in] pdwWidth

Type: DWORD*

The width, in client coordinates.

[in] pdwHeight

Type: DWORD*

The height (in client coordinates).

Return value

Type: HRESULT

If the method succeeds, the return value is an HRESULT code.

Remarks

This method can free the host from the need to maintain the cached drawing size information and the need to keep in synchronization.

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

Conceptual

ITextServices

OnTxSetCursor

Reference

TxDraw

Windowless Rich Edit Controls