EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

IDirectManipulationManager::CreateViewport method

The factory method that is used to create a new IDirectManipulationViewport object.

The viewport manages the interaction state and mapping of input to output actions.

Syntax


HRESULT CreateViewport(
  [in, optional]  IDirectManipulationFrameInfoProvider *frameInfo,
  [in]            HWND window,
  [in]            REFIID riid,
  [out, retval]   void **object
);

Parameters

frameInfo [in, optional]

The frame info provider for the viewport.

window [in]

The handle of the main app window to associate with the viewport.

riid [in]

IID to the interface.

object [out, retval]

The new IDirectManipulationViewport object.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Examples

The following example shows the syntax for this method.


IDirectManipulationViewport* pViewport;

HRESULT hr = pManager->CreateViewport(IID_PPV_ARGS(&pViewport));


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_IDirectManipulationManager is defined as FBF5D3B4-70C7-4163-9322-5A6F660D6FBC

See also

IDirectManipulationManager

 

 

Adiciones de comunidad

AGREGAR
Mostrar:
© 2014 Microsoft