次の方法で共有


TouchCalibrateUI_WaitForConfirmation (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

TouchCalibrateUI_Done
TouchCalibrateUI_DrawConfirmationScreen
TouchCalibrateUI_DrawMainScreen
TouchCalibrateUI_HandleUserInputMessage
TouchCalibrateUI_Initialize

Other Resources

Touch Screen Calibration Functions