Compartir a través de


TouchCalibrateUI_WaitForConfirmation (Compact 2013)

3/28/2014

This function is called to wait for the user to accept or reject the calibration.

Syntax

void TouchCalibrateUI_WaitForConfirmation( 
  HANDLE hevt, 
  HDC hdc 
);

Parameters

  • hevt
    Event handle to wait on.
  • hdc
    Handle to the device context of the confirmation screen.

Return Value

None.

Remarks

This function can update the confirmation screen by drawing on the given hdc.

The function does not have to wait forever for the calibration to be performed. If the function returns before the TouchCalibrateUI_Done function is called (by the TouchCalibrateUI_HandleUserInputMessage function), the calibration is rejected.

The sample code tests for a keyboard. If the keyboard is present and enabled, the function waits forever for the event to be signaled. If the keyboard is not present or enabled, the function waits until a tap is detected or until 30 seconds have elapsed, whichever occurs first. If there is a tap, the calibration is accepted. If the function times out, the function returns and the calibration is rejected.

Requirements

Header

calibrui.h

See Also

Reference

Touch Calibration Functions
TouchCalibrateUI_Done
TouchCalibrateUI_DrawConfirmationScreen
TouchCalibrateUI_DrawMainScreen
TouchCalibrateUI_HandleUserInputMessage
TouchCalibrateUI_Initialize