I also posted this question on MSDN forums. Here's the answer I got there:
The Touch Driver Entrypoint
TouchPanelSetCalibration
must be called by GWES to get the calibration data updated. When called from a user application, the API would only update data held inside the application process.But there is an other approach to implement your touch calibration wizard.
The Touch Calibration UI (calibrui) shown by
TouchCalibrate()
can be customized. Basically, you'd need to replace the default confirmation screen with your own implementation.The instructions on how to clone the default CalibrUi can be found:
- For Windows CE 5.0 in MSDN: http://msdn.microsoft.com/en-us/library/aa452834.aspx
- For CE 6.0 and Compact 7: http://guruce.com/blogpost/cloning-calibrui-in-windows-ce-60