IDirectManipulationViewportEventHandler::OnContentUpdated method

Called when content inside a viewport is updated.

Syntax


HRESULT OnContentUpdated(
  [in]  IDirectManipulationViewport *viewport,
  [in]  IDirectManipulationContent *content
);

Parameters

viewport [in]

The viewport that is updated.

content [in]

The content in the viewport that has changed.

Return value

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

Remarks

This method is called once for each content change in the viewport. This can result in multiple OnContentUpdated calls. For instance, when the position of the content is changed, you can use IDirectManipualtionContent::GetContentTransform to retrieve the new value.

If you have actions that need to be executed once for a viewport update, implement OnViewportUpdated.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

IDL

DirectManipulation.idl

See also

IDirectManipulationViewportEventHandler

 

 

Community Additions

ADD
Show:
© 2014 Microsoft