Skip to main content
IDirectManipulationViewport::Enable method

Starts or resumes input processing by the viewport.

Syntax


HRESULT Enable();

Parameters

This method has no parameters.

Return value

If the method succeeds, it returns S_OK, or S_FALSE if there is no work to do (for example, the viewport is already enabled). Otherwise, it returns an HRESULT error code.

Remarks

This method directs a viewport to attempt to respond to input.

Call this method if the AUTODISABLE option is set.

Examples

The following example shows how to use this method.


HRESULT hr = pViewport->Enable();

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationViewport is defined as 28b85a3d-60a0-48bd-9ba1-5ce8d9ea3a6d

See also

IDirectManipulationViewport