This method of the DirectDrawSurface Class, given a visible, active overlay surface (DDSCAPS_OVERLAY flag set), returns the x-display-coordinate of the surface.
public int getOverlayPositionX();
Returns the x-coordinate.
getOverlayPositionY, setOverlayPosition, updateOverlay