DirectX SDK

DirectDrawSurface7.SetOverlayPosition

The DirectDrawSurface7.SetOverlayPosition method changes the display coordinates of an overlay surface.

object.SetOverlayPosition(x As Long, y As Long)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
x and y
New x- and y-display coordinates.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_GENERIC
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_INVALIDPOSITION
DDERR_NOOVERLAYDEST
DDERR_NOTAOVERLAYSURFACE
DDERR_OVERLAYNOTVISIBLE
DDERR_SURFACELOST
DDERR_UNSUPPORTED

See Also

DirectDrawSurface7.GetOverlayPosition