Package com.ms.com.directX |
![]() Previous |
![]() Microsoft Packages |
![]() Index |
![]() Next |
Applications use the methods of the d3drmWinDevice class to respond to window messages in a window procedure.
public class d3drmWinDevice implements Id3drmWinDevice { public void InternalSetObject(IUnknown lpdd); public IUnknown InternalGetObject(); public void AddDestroyCallback(Id3drmCallback fn, IUnknown Arg); public void DeleteDestroyCallback(Id3drmCallback fn, IUnknown args); public d3drmWinDevice Clone(); public void SetAppData(int data); public int GetAppData(); public void SetName(String name); public String GetName(); public String GetClassName(); public void HandlePaint(int hdc); public void HandleActivate(int wparam); }
There are the following methods:
HandleActivate |
HandlePaint |
In addition, the d3drmWinDevice class inherits the following methods from the d3drmObject class:
AddDestroyCallback |
Clone |
DeleteDestroyCallback |
GetAppData |
GetClassName |
GetName |
SetAppData |
SetName |
The d3drmWinDevice object is obtained by calling the Getd3drmWinDevice method, or by calling a method such as CreateDeviceFromD3D.
public void HandleActivate(int wparam);Responds to a Windows WM_ACTIVATE message. This ensures that the colors are correct in the active rendering window.
Return Value:
No return value.
Parameter Description wparam WPARAM parameter passed to the message-processing procedure with the WM_ACTIVATE message.
public void HandlePaint(int hdc);This method should be called before repainting any application areas in the window because it may repaint areas outside the viewports that have been created on the device.
Return Value:
No return value.
Parameter Description hDC Handle of the device context (DC).