SHRGINFO

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

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

Members

  • cbSize
    Size of the SHRGINFO structure.
  • hwndClient
    Handle to the window calling the SHRecognizeGesture function.
  • 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 hwndClient will receive WM_NOTIFY or GN_CONTEXTMENU, as applicable.
    SHRG_RETURNCMD Return value will be GN_CONTEXTMENU or 0.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: AYGShell.h.

See Also

AYGShell Structures | SHRecognizeGesture | WM_NOTIFY

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.