Platform SDK: DirectX

DirectDrawSurface7.UpdateOverlayZOrder

The DirectDrawSurface7.UpdateOverlayZOrder method sets the z-order of an overlay.

object.UpdateOverlayZOrder( _ 
    flags As CONST_DDOVERZFLAGS, _ 
    ddS As DirectDrawSurface7)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
flags
One of the constants of the CONST_DDOVERZFLAGS enumeration describing where to position the overlay.
ddS
DirectDrawSurface7 object for the DirectDraw surface to be used as a relative position in the overlay chain. This parameter is needed only for DDOVERZ_INSERTINBACKOF and DDOVERZ_INSERTINFRONTOF.

Error Codes

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

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_NOTAOVERLAYSURFACE