IDirectManipulationViewportEventHandler::OnViewportStatusChanged method (directmanipulation.h)

Called when the status of a viewport changes.

Syntax

HRESULT OnViewportStatusChanged(
  [in] IDirectManipulationViewport *viewport,
  [in] DIRECTMANIPULATION_STATUS   current,
  [in] DIRECTMANIPULATION_STATUS   previous
);

Parameters

[in] viewport

The viewport for which status has changed.

[in] current

The new status of the viewport.

[in] previous

The previous status of the viewport.

Return value

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

Remarks

If you call GetStatus from within this handler, the status returned is not guaranteed to be the same as at the time of the call. This is because of the asynchronous nature of the notification.

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