| Platform SDK: DirectX |
The DirectDrawSurface7.SetOverlayPosition method changes the display coordinates of an overlay surface.
object.SetOverlayPosition(x As Long, y As Long)
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 |