BCGControlBar Pro for MFC
BOOL CBCGPGestureManager::GetGestureConfig ( HWND  hwnd,
CBCGPGestureConfig config 

Retrieves the configuration for which Windows Touch gesture messages are sent from a window.

hwndA handle to the window to get the gesture configuration from.
config[in,out] Specifies the gesture configuration.
TRUE if it succeeds, FALSE if it fails.