Package com.ms.com.directX Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

Class d3drmWinDevice

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.

HandleActivate

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.

ParameterDescription
wparam WPARAM parameter passed to the message-processing procedure with the WM_ACTIVATE message.


HandlePaint

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.

ParameterDescription
hDC Handle of the device context (DC).



Top© 1996 Microsoft Corporation. All rights reserved.