IDirectManipulationViewportEventHandler::OnContentUpdated method (directmanipulation.h)

Called when content inside a viewport is updated.

Syntax

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

Parameters

[in] viewport

The viewport that is updated.

[in] content

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

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

IDirectManipulationViewportEventHandler