IDirectManipulationViewport::Enable method (directmanipulation.h)

Starts or resumes input processing by the viewport.

Syntax

HRESULT Enable();

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

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

See also

IDirectManipulationViewport