CreateCompatibleHRC 

2.0     

Creates a handwriting recognition context HRC that can be used to do handwriting recognition, optionally compatible with an existing context template. A recognizer must export this function.

HRC CreateCompatibleHRC( HRC hrcTemplate, HREC hrec )

Parameters

hrcTemplate

Handle to an existing HRC object that can provide default settings for the recognition context being created. If NULL, this parameter is ignored and default settings are used.

hrec

Instance handle of the recognizer library. This is the value returned by the Windows function LoadLibrary1VGHBF8. Note that the module handle returned by the Windows function GetModuleHandle18VFC_P does not work in this case. If this value is NULL, the system default recognizer is used by internally making a call to GetPenMiscInfo1AOBY9 with PMI_SYSREC as the first argument.

Return Value

Returns a handle to a new HRC object if successful; otherwise, returns NULL.

Comments

The hrcTemplate parameter can be used to copy an old context into the new HRC object. This includes settings such as word lists, coercion, and GUIDE1AOCW. structure, but excludes any pen data that may be in the old context.

See Also

DestroyHRC, GetResultsHRC, SetMaxResultsHRC