RCRESULT
1.0 2.0
Applications
that do not call the superseded functions RecognizeData
The RCRESULT
structure is provided only for compatibility with version 1.0 of the Pen API,
and will not be supported in future versions.
typedef struct {
SYG syg;
UINT
wResultsType;
int cSyv;
LPSYV
lpsyv;
HANDLE
hSyv;
int
nBaseLine;
int
nMidLine;
HPENDATA
hpendata;
RECT
rectBoundInk;
POINT
pntEnd;
LPRC lprc;
} RCRESULT;
Members
syg
Symbol graph.
wResultsType
An RCRT_
value.
cSyv
Number of
symbol values, not including the NULL terminator.
lpsyv
Null-terminated
pointer to the recognizer s best guess.
hSyv
Globally
shared handle to the symbol value specified by the lpsyv member.
nBaseLine
Zero or
baseline of input writing.
nMidLine
Zero or
midline of input writing.
hpendata
Handle to pen
data.
rectBoundInk
Bounding
rectangle for ink.
pntEnd
Point that
terminated recognition.
lprc
Recognition
context used.
Comments
When an
application calls Recognize
The following sections elaborate on the RCRESULT
members. All of the members are allocated with GMEM_SHARE so they can be passed
between processes.
syg
This member
contains the raw results returned by the recognizer. These include the various
possible interpretations of the pen input, the mapping of the results to the
raw data, and locations of any hot spots if the result is a gesture. The syg.lpsyc
member is not valid unless RCP_MAPCHAR was set in the RC
wResultsType
This member
indicates the type of recognition results, expressed as a bitwise-OR
combination of RCRT_ values. The RCRT_ values are not mutually exclusive. Note
that the recognizer should never have to set RCRT_GESTURETOKEYS,
RCRT_ALREADYPROCESSED, or RCRT_GESTURETRANSLATED.
For a list of values, see the entry for RCRT_ values in Chapter 13, Pen Application Programming Interface Constants.
lpsyv
This member
contains the symbols that are recognized. An application should use these
values to display the text or gestures recognized. The lpsyv member is
the result of any dictionary search on the SYG1AOCY. structure or further postprocessing. It is
NULL if the NULL recognizer is used.
hpendata
This member
contains the raw data captured during inking.
rectBoundInk
This is the
bounding rectangle of the ink drawn during recognition. It is in coordinates of
the window that receives the results. If the user attempts to draw ink outside rc.rectbound,
the ink will not be displayed. However, rectBoundInk is calculated as
though the ink were drawn.
If data is
collected outside the bounding rectangle, the rectBound member of PENDATAHEADER
pntEnd
If
recognition ended on a tap outside the bounding rectangle or inside the
exclusive rectangle, pntEnd contains the coordinates of those points in
display coordinates.
lprc
This is the RC
See Also