BOOL WINAPI DoCalibration (
HANDLE hFile,
HWND hParentWnd,
PVOID pContext,
MAP_CALLBACK_ROUTINE pCallbackRoutine );
DoCalibration do 4 points calibration for the touchscreen.
Parameters
hFile
Handle to the open device by CreateDevice.
hParentWnd
The parent window.
pContext
Caller prepared buffer to be passed to the caller prepared callback routine.
pCallbackRoutine
Caller prepared callback routine. Once the calibration is done, the callback routine will be called. The Caller prepared buffer pContext, calibration result information will be passed to this callback routine.
Remark
This calibration mapping can be finished successfully only DeviceThread was started with StartDeviceThread . This function creates a calibration window for 4 points calibration. The caller has to make sure that application has the Windows message loop so that this calibration can work correctly.
Partager