Package com.ms.com.directX |
![]() Previous |
![]() Microsoft Packages |
![]() Index |
![]() Next |
Applications use the d3drmUserVisual class to initialize visual objects. Note that this initialization is not necessary if the application calls the CreateUserVisual method; it is required only if the application calls the CreateObject method to create the user-visual object.
public class d3drmUserVisual implements Id3drmUserVisual { public void InternalSetObject(IUnknown lpdd); public IUnknown InternalGetObject(); public void AddDestroyCallback(Id3drmCallback fn, IUnknown Arg); public void DeleteDestroyCallback(Id3drmCallback fn, IUnknown args); public d3drmUserVisual Clone(); public void SetAppData(int data); public int GetAppData(); public void SetName(String name); public String GetName(); public String GetClassName(); public void Init(IUserVisualCallback fn, IUnknown Arg); }
There is the Init method.
In addition, the d3drmUserVisual class inherits the following methods from the d3drmObject class:
AddDestroyCallback |
Clone |
DeleteDestroyCallback |
GetAppData |
GetClassName |
GetName |
SetAppData |
SetName |
The d3drmUserVisual object is obtained by calling the CreateUserVisual method.
public void Init(IUserVisualCallback fn, IUnknown Arg);Initializes a d3drmUserVisual object.
Return Value:
No return value.
Parameter Description fn Callback interface that contains an application-defined callback function. Arg Application-defined data to be passed to the callback function. Remarks:
Applications can call the CreateUserVisual method to create and initialize a user-visual object at the same time. It is necessary to call Init only when the application has created the user-visual object by calling the CreateObject method.