หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
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 |
|---|---|
|
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
Reference