Windows Media Player 11 SDK IWMPEffects2::Create
Previous | Next |
IWMPEffects2::Create
The Create method is called by Windows Media Player to instantiate a visualization window.
Syntax
Parameters
hwndParent
[in] HWND handle to the parent window hosting the visualization window.
Return Values
This method returns an HRESULT.
Remarks
A visualization that implements IWMPEffects2 is rendered in its own window unless it will be displayed in a clipped device context, in which case it is rendered windowless. For a visualization that is rendered windowless, Windows Media Player calls this method with a NULL value for the hwndParent parameter. If your visualization does not support windowless mode (for example, when using Direct 3D), it should return a failure HRESULT value. In this case, your visualization will not be available in skins that clip the display region.
If you create a visualization for Windows Media Player using the Direct3D® component of Microsoft DirectX®, you must set the D3DCREATE_FPU_PRESERVE flag when calling IDirect3D8::CreateDevice. Failure to set this flag for visualizations that use Direct3D may yield unexpected results.
Requirements
Version: Windows Media Player 9 Series or later.
Header: Include effects.h.
See Also
Previous | Next |