Sensoray 2224 Windows User Manual
Page 50
handle to device (obtained from S2226_OpenBoard).
Returns
0 on success, negative value if error (see mid2226types.h for error codes list).
MID2226_API int S2226_TestDeviceRemoval(
HANDLE hdev
);
After receiving a message (set up by S2226_SetNotify), call S2226_TestDeviceRemoval to see if
device was removed (unplug).
Parameters
hdev
handle to device (obtained from S2226_OpenBoard).
MID2226_API int S2226_OverlayText(
int xpos,
int ypos,
overlay_text_t *ovltext,
int regionmask,
HANDLE hdev
);
Adds overlay text. If overlay text already exists at that x,y position, deletes windows before
adding. Overlay active on regions defined by regionmask. If text contains embedded newline
characters (\n = 10 dec), then each line of text will be created on in a new window, AtIndex sub-
window position, directly below the preceding line. Each sub-window position only consumes
enough overlay memory needed to hold the individual line. If text contains embedded character 30
dec (entered programmatically or by holding down Alt- and typing "030" on the numeric keypad),
then each line following a char(30) will be on a new line. Multi-line text created this way will be
created as one large graphic at one “index” location.
Parameters
xpos
start x position.
ypos
start y position.
ovltext
pointer to overlay text.
50