UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:directmanipulation.IDirectManipulationManager.ProcessInput |
IDirectManipulationManager::ProcessInput (directmanipulation.h) |
Passes keyboard and mouse messages to the manipulation manager on the app's UI thread. |
|
directmanipulation\idirectmanipulationmanager_processinput.htm |
directmanipulation |
ed7fa19b-acfe-4d5d-bd71-a77e5016fe68 |
12/05/2018 |
IDirectManipulationManager interface [Direct Manipulation],ProcessInput method, IDirectManipulationManager.ProcessInput, IDirectManipulationManager::ProcessInput, ProcessInput, ProcessInput method [Direct Manipulation], ProcessInput method [Direct Manipulation],IDirectManipulationManager interface, directmanipulation.idirectmanipulationmanager_processinput, directmanipulation/IDirectManipulationManager::ProcessInput |
directmanipulation.h |
Windows |
Windows 8 [desktop apps only] |
Windows Server 2012 [desktop apps only] |
DirectManipulation.idl |
Windows |
19H1 |
|
|
|
|
|
|
Passes keyboard and mouse messages to the manipulation manager on the app's UI thread.
The input message to process.
TRUE if no further processing should be done with this message; otherwise, FALSE.
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Call this method for mouse and keyboard input.
The following example shows how to pass messages to the manipulation manager.
LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
BOOL handled = FALSE;
LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
BOOL handled = FALSE;
switch (msg)
{
case WM_KEYDOWN:
case WM_POINTERWHEEL:
case WM_POINTERHWHEEL:
case WM_MOUSEWHEEL:
case WM_MOUSEHWHEEL:
MSG msg = {};
msg.hwnd = hwnd;
msg.message = message;
msg.lParam = lParam;
msg.wParam = wParam;
if (FAILED(m_pManipulationManager->ProcessInput(&msg, &handled)))
{
handled = false;
}
break;
}
if ( !handled)
{
return DefWindowProc(hwnd,msg,wParam,lParam);
}
else
{
return 0;
}
}