You are reading help file online using chmlib.com
|
ISpRecoContext::SetContextState sets the state of the recognition context.
HRESULT SetContextState(
SPCONTEXTSTATE eContextState
);
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | eContextState is not one of the correct types. |
FAILED(hr) | Appropriate error message. |
The default recognition context state for an ISpRecoContext object is SPCS_ENABLED.
Applications can use ISpRecoContext::SetContextState to toggle sets of grammars. For example, a multi-document interface application that uses a different ISpRecoContext object for each document could toggle the context states as each document gained and lost the focus.
Applications can use ISpRecoContext::GetContextState to query the context state.
You are reading help file online using chmlib.com
|