Compartir a través de


Touch Functions (Compact 2013)

3/28/2014

The following table shows the functions that support direct manipulation and gestures, with a description of the purpose of each.

Many of these functions are shared with the mouse, since stylus interaction is interpreted as a left mouse click.

The icon functions are mostly shared with GWES.

In This Section

  • ClipCursor
    This function confines the cursor to a rectangular area on the screen.
  • DestroyIcon
    This function destroys an icon and frees any memory the icon occupied.
  • DisableGestures
    This function disables one or many touch gestures for a window or application process.
  • DrawIcon
    This function draws an icon in the specified device context.
  • EnableGestures
    This function enables one or many touch gestures for a window or application process.
  • ExtractIconEx
    This function retrieves the handle from the specified executable file or dynamic-link library (DLL).
  • GetCapture
    This function retrieves the handle to the window, if any, that has captured the mouse or stylus input.
  • GetClipCursor
    This function retrieves the screen coordinates of the rectangular area to which the cursor is confined.
  • GetCursor
    This function retrieves the handle to the current cursor.
  • GetCursorPos
    This function retrieves the cursor's position, in screen coordinates.
  • GetDeviceCaps
    The nIndex parameter TOUCHCAPS can be used to determine whether a device supports touch.
  • GetDoubleClickTime
    This function retrieves the current double-click time for the mouse or stylus.
  • GetMouseMovePoints
    This function retrieves points, associated with WM_LBUTTONDOWN and WM_MOUSEMOVE messages, that the OS typically discards when an application cannot process these messages as fast as the application receives these messages.
  • LoadAnimatedCursor
    This function enables an application to define and load a customized, animated wait cursor.
  • LoadCursor
    This function loads a cursor resource.
  • LoadIcon
    This function loads the specified icon resource from the executable (.exe) file associated with an application instance.
  • mouse_event
    This function synthesizes mouse motion and button clicks.
  • ReleaseCapture
    This function releases the mouse or stylus capture from a window in the current thread and restores normal processing of input.
  • SetCapture
    This function sets the mouse or style capture to a specified window that belongs to the current thread.
  • SetCursor
    This function establishes the cursor shape.
  • SetCursorPos
    This function moves the cursor to the specified screen coordinates.
  • ShowCursor
    This function displays or hides the cursor.

See Also

Reference

Touch Reference