Windows Dev Center

IDirectManipulationViewportEventHandler::OnViewportStatusChanged method

Called when the status of a viewport changes.

Syntax


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

Parameters

viewport [in]

The viewport for which status has changed.

current [in]

The new status of the viewport.

previous [in]

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

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:
© 2015 Microsoft