IDirectManipulationViewport::Disable method (directmanipulation.h)
Stops input processing by the viewport.
HRESULT Disable();
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
When a viewport is disabled, it immediately stops all transforms and moves the content to the final location.
Call this method when you want to modify multiple attributes atomically. This method can be called at any time.
The viewport will not resume processing input until Enable is called.
The following example shows how to use this method.
HRESULT hr = pViewport->Disable();
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | directmanipulation.h |