ITextHost::OnTxCharFormatChange method (textserv.h)

Sets the default character format for the text host.

Syntax

HRESULT OnTxCharFormatChange(
  [in] const CHARFORMATW *pCF
);

Parameters

[in] pCF

Type: const CHARFORMAT*

The new default-character format.

Return value

Type: HRESULT

Return S_OK if the method succeeds.

Return one of the following COM error codes if the method fails. For more information on COM error codes, see Error Handling in COM.

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

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

CHARFORMAT

Conceptual

ITextHost

Reference

Windowless Rich Edit Controls