Platform SDK: DirectX

DirectDrawSurface7.GetClipper

The DirectDrawSurface7.GetClipper method retrieves the DirectDrawClipper object associated with this surface.

object.GetClipper() As DirectDrawClipper

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.

Return Values

If the method succeeds, it returns a DirectDrawClipper object associated with the surface.

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_NOCLIPPERATTACHED

See Also

DirectDrawSurface7.SetClipper

Remarks

The object returned by a successful function call must be assigned to a DirectDrawClipper object variable. For example:

Dim Clipper as DirectDrawClipper
Set Clipper = object.GetClipper()