Windows Dev Center

IDirectDrawSurface7::SetOverlayPosition method

Changes the display coordinates of an overlay surface.

Syntax


HRESULT SetOverlayPosition(
  [in] LONG lX,
  [in] LONG lY
);

Parameters

lX [in]

The new x- display coordinate of this surface.

lY [in]

The new y-display coordinate of this surface.

Return value

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

  • DDERR_GENERIC
  • DDERR_INVALIDOBJECT
  • DDERR_INVALIDPARAMS
  • DDERR_INVALIDPOSITION
  • DDERR_NOOVERLAYDEST
  • DDERR_NOTAOVERLAYSURFACE
  • DDERR_OVERLAYNOTVISIBLE
  • DDERR_SURFACELOST
  • DDERR_UNSUPPORTED

Remarks

You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the SetOverlayPosition method.

Requirements

Header

Ddraw.h

Library

Ddraw.lib

DLL

Ddraw.dll

See also

IDirectDrawSurface7

 

 

Community Additions

ADD
Show:
© 2015 Microsoft