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.Activate |
IDirectManipulationManager::Activate (directmanipulation.h) |
Activates Direct Manipulation for processing input and handling callbacks on the specified window. |
|
directmanipulation\idirectmanipulationmanager_activate.htm |
directmanipulation |
49a5eccd-16a9-4dca-af78-224fd5acb611 |
12/05/2018 |
Activate, Activate method [Direct Manipulation], Activate method [Direct Manipulation],IDirectManipulationManager interface, IDirectManipulationManager interface [Direct Manipulation],Activate method, IDirectManipulationManager.Activate, IDirectManipulationManager::Activate, directmanipulation.idirectmanipulationmanager_activate, directmanipulation/IDirectManipulationManager::Activate |
directmanipulation.h |
Windows |
Windows 8 [desktop apps only] |
Windows Server 2012 [desktop apps only] |
DirectManipulation.idl |
Windows |
19H1 |
|
|
|
|
|
|
Activates Direct Manipulation for processing input and handling callbacks on the specified window.
The window in which to activate Direct Manipulation.
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
The manipulation manager is deactivated, by default. The manager does not receive or respond to input and callbacks until Activate is called for the window.
Calls to Activate and Deactivate are reference counted.
The following example shows how to activate and deactivate input processing.
LRESULT WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )
{
BOOL handled = FALSE;
switch ( msg )
{
case WM_SIZE:
switch ( wParam)
{
case SIZE_MINIMIZED:
case SIZE_MAXHIDE:
pManipulationManager->Deactivate(hwnd);
break;
default:
pManipulationManager->Activate(hwnd);
break;
}
break;
}
if ( !handled)
{
return DefWindowProc(hwnd,msg,wParam,lParam);
}
else
{
return 0;
}
}