DD_SETOVERLAYPOSITIONDATA structure (ddrawint.h)

The DD_SETOVERLAYPOSITIONDATA structure contains information necessary to change the display coordinates of an overlay surface.

Syntax

typedef struct _DD_SETOVERLAYPOSITIONDATA {
  PDD_DIRECTDRAW_GLOBAL lpDD;
  PDD_SURFACE_LOCAL     lpDDSrcSurface;
  PDD_SURFACE_LOCAL     lpDDDestSurface;
  LONG                  lXPos;
  LONG                  lYPos;
  HRESULT               ddRVal;
  VOID                  *SetOverlayPosition;
} *PDD_SETOVERLAYPOSITIONDATA, DD_SETOVERLAYPOSITIONDATA;

Members

lpDD

Points to a DD_DIRECTDRAW_GLOBAL structure that describes the driver's device.

lpDDSrcSurface

Points to a DD_SURFACE_LOCAL structure that represents the Microsoft DirectDraw overlay surface.

lpDDDestSurface

Points to a DD_SURFACE_LOCAL structure representing the surface that is being overlaid.

lXPos

Specifies the x-coordinate of the upper left corner of the overlay, in pixels.

lYPos

Specifies the y coordinate of the upper left corner of the overlay, in pixels.

ddRVal

Specifies the location in which the driver writes the return value of the DdSetOverlayPosition callback. A return code of DD_OK indicates success. For more information, see Return Values for DirectDraw.

SetOverlayPosition

Used by the DirectDraw API and should not be filled in by the driver.

Requirements

Requirement Value
Header ddrawint.h (include Winddi.h)

See also

DdSetOverlayPosition