ITextHost::TxDeactivate method

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextHost
Reference
TxActivate
Conceptual
Windowless Rich Edit Controls

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.