DirectX SDK

DirectDrawSurface7.DrawBox

The DirectDrawSurface7.DrawBox method draws a box on the surface.

object.DrawBox( _ 
    x1 As Long, _ 
    y1 As Long, _ 
    x2 As Long, _ 
    y2 As Long)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
x1, y1, x2, y2
Upper-left and bottom-right points of the box to be drawn.

Error Codes

If the method fails, it raises an error, and Err.Number is set.

Remarks

The default draw style is a solid line, and the default fill style is set to transparent. Both styles can be changed with a call to DirectDrawSurface7.SetDrawStyle and DirectDrawSurface7.SetFillStyle, respectively.