IDirectManipulationViewport::GetPrimaryContent method

Gets the primary content of a viewport that implements IDirectManipulationContent and IDirectManipulationPrimaryContent.

Primary content is an element that gets transformed (e.g. moved, scaled, rotated) in response to a user interaction. Primary content is created at the same time as the viewport and cannot be added or removed.

Syntax


HRESULT GetPrimaryContent(
  [in]           REFIID riid,
  [out, retval]  void **object
);

Parameters

riid [in]

IID to the interface.

object [out, retval]

The primary content object.

Return value

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

Remarks

This method gets the content of the viewport that implements IDirectManipulationContent and IDirectManipulationPrimaryContent.

Examples

The following example shows how to use this method.


IDirectManipulationPrimaryContent *pContent;

HRESULT hr = pRegion->GetPrimaryContent(IID_PPV_ARGS(&pContent));


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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft