Partager via


TouchCalibrateUI_WaitForConfirmation

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

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 Values

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

OS Versions: Windows CE 2.10 and later.
Header: Calibrui.h.

See Also

TouchCalibrateUI_Done | TouchCalibrateUI_DrawConfirmationScreen | TouchCalibrateUI_DrawMainScreen | TouchCalibrateUI_HandleUserInputMessage | TouchCalibrateUI_Initialize

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.