Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class Direct3dRMWinDevice

public class Direct3dRMWinDevice implements 
            IDirect3dRMWinDevice
{
  // Methods
  public void handleActivate(int wparam);
  public void handlePaint(int hdc);
}

Applications use the methods of the Direct3dRMWinDevice class to respond to window messages in a window procedure.

In addition, the Direct3dRMWinDevice class inherits the following methods from the Direct3dRMObject class:

addDestroyCallback
duplicate
deleteDestroyCallback
getAppData
getClassName
getName
setAppData
setName

The Direct3dRMWinDevice object is obtained by calling the getDirect3dRMWinDevice method or by calling a method such as createDeviceFromDirect3d.

Methods

handleActivate

public void handleActivate(int wparam);

Responds to a Microsoft® Windows® WM_ACTIVATE message. This method ensures that the colors in the active rendering window are correct.

Return Value:

No return value.

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

handlePaint

public void handlePaint(int hdc);

Handles painting updates.

Return Value:

No return value.

ParameterDescription
hdc The device context (DC) handle.

Remarks:

This method should be called before repainting any application areas in the window because areas outside the viewports that have been created on the device may be repainted.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.