Sensoray 2224 Windows User Manual
Page 49
handle to device context.
hdev
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_DisplayChange(
HDC hdc,
HANDLE hdev
);
Call this function in your WM_DISPLAYCHANGE message handler for the video window. See demo
application for example usage.
Parameters
hdc
handle to device context.
hdev
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_SetNotify(
HWND hNotifyWnd,
UINT mNotifyMessage
HANDLE hdev
);
Use to set up a callback to the HWND when device message occurs. Use in conjunction with
S2226_TestDeviceRemoval to see when device removed (see demo application for implementation
details).
Parameters
hNotifyWnd
Window to notify on device event (removal)
mNotifyMessage
Window message to use for notification.
hdev
49