ITextHost::OnTxCharFormatChange method

Sets the default character format for the text host.

Syntax


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

Parameters

pCF [in]

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

One or more arguments are not valid.

E_FAIL

Unspecified error.

 

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

ITextHost
Reference
CHARFORMAT
Conceptual
Windowless Rich Edit Controls

 

 

Community Additions

ADD
Show:
© 2015 Microsoft