ITextServices::TxGetCachedSize method

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

pdwWidth [in]

Type: DWORD*

The width, in client coordinates.

pdwHeight [in]

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

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
Reference
TxDraw
OnTxSetCursor
Conceptual
Windowless Rich Edit Controls

 

 

Show: