This topic has not yet been rated - Rate this topic

WM_GESTURENOTIFY message

Applies to: desktop apps only

Gives you a chance to set the gesture configuration.

Parameters

wParam

Unused.

lParam

A pointer to a GESTURENOTIFYSTRUCT.

Return value

A value should be returned from DefWindowProc.

Remarks

When the WM_GESTURENOTIFY message is received, the application can use SetGestureConfig to specify the gestures to receive. This message should always be bubbled up using the DefWindowProc function.

Note   Handling the WM_GESTURENOTIFY message will change the gesture configuration for the lifetime of the Window, not just for the next gesture.

Examples

The following example shows how to enable all gestures. For more examples, see SetGestureConfig.



    switch (message)
    {
    case WM_GESTURENOTIFY:
        GESTURECONFIG gc = {0,GC_ALLGESTURES,0};
        BOOL bResult = SetGestureConfig(hWnd,0,1,&gc,sizeof(GESTURECONFIG));
            
        if(!bResult)
        {
            // an error
        }
        return DefWindowProc(hWnd, WM_GESTURENOTIFY, wParam, lParam);
    }
      

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Winuser.h (include Windows.h)

See also

Notifications
Windows Touch Gestures Programming Guide
GESTURENOTIFYSTRUCT
SetGestureConfig

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Value
WM_GESTURENOTIFY = 0x011A;