Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure sets members for the SHRecognizeGesturefunction. If a user taps and holds long enough to warrant a context menu, a GN_CONTEXTMENUnotification will be returned by the function, or sent to the parent of the control, depending on the values in the SHRGINFOstructure.

Syntax

typedef struct tagSHRGI {
  DWORD 
cbSize;
  HWND 
hwndClient;
  POINT 
ptDown;
  DWORD 
dwFlags;
} SHRGINFO, *PSHRGINFO;

Members

cbSize

Size of the SHRGINFOstructure.

hwndClient

Handle to the window calling the SHRecognizeGesturefunction.

ptDown

X and Y client coordinates of the mouse-down position.

dwFlags

Contains one of the values listed in the following table.

Flag Description

SHRG_LONGDELAY

This will process a longer delay than the default before it indicates a gesture.

SHRG_NOANIMATION

Suppresses the animation associated with a gesture. For more information, see SHRecognizeGesture.

SHRG_NOTIFYPARENT

Parent of hwndClientwill receive WM_NOTIFYor GN_CONTEXTMENU, as applicable.

SHRG_RETURNCMD

Return value will be GN_CONTEXTMENU or 0.

Requirements

Header aygshell.h
Library aygshell.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later