Setting Up the HWXGUIDE Structure (Windows CE 5.0)

Send Feedback

You define the size and position of the box or boxes that are used for character entry within the HWXGUIDE structure. The HwxSetGuide function provides the recognition engine with the coordinates to the HWXGUIDE structure for interpreting the input coordinates. The following illustration shows the dimensions of an input box for character entry.

ms904346.guidebox(en-us,MSDN.10).gif

The base (cyBase) and the midline (cyMid) in the HWXGUIDE structure are used primarily for characters and are not required for glyphs. Placement of a specific box within the display on the target device is defined by the xOrigin and yOrigin parameters. Offset parameters establish a buffer space between each box when multiple boxes are used, which helps prevent the user from overwriting ink data from one box into another. In the event that you overwrite ink data, the recognition engine must determine to which box the ink data corresponds.

After initializing the handwriting recognition engine by using the HwxConfig function, the entire recognition process begins and ends with the creation and destruction, respectively, of a handwriting recognition context (HRC) object. Similar to a handle to a window or a handle to a device context, an HRC is a unique 32-bit handle that is used by the recognition engine for handwriting recognition. An HRC is used for input in a single box or multiple boxes. It carries all of the ink data and setup parameters that are necessary for recognizing a glyph, one character, or multiple characters. Use the HwxCreate and HwxDestroy functions, respectively, to create and destroy an HRC object.

See Also

Handwriting Recognizer Engine (HWX) Application Development | Recognizing a Hand-Drawn Character

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.