IDirectManipulationViewport2::RemoveBehavior method (directmanipulation.h)
Removes a behavior from the viewport that matches the given cookie.
Syntax
HRESULT RemoveBehavior(
[in] DWORD cookie
);
Parameters
[in] cookie
A valid cookie returned from the AddBehavior call on the same viewport.
Return value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. If the behavior has already been removed or if the behavior is not attached to this viewport a failure is returned.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps only] |
Minimum supported server | Windows Server 2012 R2 [desktop apps only] |
Target Platform | Windows |
Header | directmanipulation.h |