IDirect3DRMFrame2::AddMoveCallback2
Adds a callback function for special movement processing.
HRESULT AddMoveCallback2(
D3DRMFRAME2MOVECALLBACK d3drmFMC,
VOID * lpArg,
DWORD dwFlags
);
Parameters
d3drmFMC
Application-defined D3DRMFRAME2MOVECALLBACK callback function.
lpArg
Application-defined data to be passed to the callback function.
dwFlags
One of the following values:
D3DRMCALLBACK_PREORDER - the default. When IDirect3DRMFrame2::Move traverses the hierarchy, callbacks for a frame are called before any child frames are traversed.
D3DRMCALLBACK_POSTORDER - When IDirect3DRMFrame2::Move traverses the hierarchy, callbacks for a frame are called after the child frames are traversed.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
Remarks
Multiple callbacks on an individual frame are called in the order that the callbacks were created.
See Also
IDirect3DRMFrame2::Move, IDirect3DRMFrame2::DeleteMoveCallback