Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
SetFlags Function |
Specifies how the recognizer interprets the ink and determines the result string.
You call this function before processing the ink for the first time. Therefore, call the SetFlags function before calling the Process function.
Syntax
[C++]
HRESULT WINAPI SetFlags(
HRECOCONTEXT hrc,
DWORD dwFlags
);
Parameters
hrc | [in] Handle to the recognizer context. | ||||||||||||||
dwFlags | [in] The following table lists the flags that you may set to specify how the recognizer interprets the ink and determines the result string. Use the OR operator (|) to combine flags as appropriate.
|
Return Values
HRESULT value | Description |
S_OK | Success. |
E_INVALIDARG | The flag is invalid. |
E_NOTIMPL | The recognizer does not support this function. |
E_OUTOFMEMORY | Unable to allocate memory to complete the operation. |
E_FAIL | An unspecified error occurred. |
E_POINTER | The context is invalid or one of the parameters is an invalid pointer. |
Remarks
Prior to Microsoft® Windows® XP Tablet PC Edition Development Kit 1.7, Tablet PC Input Panel performed smart spacing. Starting with Tablet PC SDK 1.7, Tablet PC Input Panel continues to produce results with preliminary spacing recommendations. Tablet PC Input Panel's spacing results may however be changed by the recognizer's recommendations (results). The recognizer is able to do this by using text contextual information (based on the SetTextContext call made by Tablet PC Input Panel) and its internal language model rules.
Tablet PC Input Panel is able to determine whether or not the recognizer is capable of doing auto-spacing by calling this function with the RECOFLAG_AUTOSPACE flag set. If the recognizer does not support auto-spacing, E_NOTIMPL is returned.
Note: The single-line flag is not compatible with the guide flag. Callers must select only one of boxed mode, line mode, free mode, or single-line mode.