ITextHost::TxDeactivate method (textserv.h)

Notifies the text host that the control is now inactive.

Syntax

HRESULT TxDeactivate(
  LONG lNewState
);

Parameters

lNewState

Type: LONG

New state of the control. Typically it is the value returned by ITextHost::TxActivate.

Return value

Type: HRESULT

Return S_OK if the method succeeds.

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

Return code Description
E_FAIL
Unspecified error.

Remarks

No matter how many times this method is called, only one call to ITextHost::TxActivate is necessary to activate the control.

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

ITextHost

Reference

TxActivate

Windowless Rich Edit Controls