WM_GESTURENOTIFY message
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
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
Header |
|