IDirectDrawSurface::SetOverlayPosition

HRESULT SetOverlayPosition(LONG lX, LONG lY);

Changes the display coordinates of an overlay surface.

·Returns DD_OK if successful, or one of the following error values otherwise:

DDERR_GENERIC DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS DDERR_SURFACELOST
DDERR_UNSUPPORTED  

lX

New x-display coordinate.

lY

New y-display coordinate.