DirectX SDK

DirectDrawSurface7.DrawRoundedBox

The DirectDrawSurface7.DrawRoundedBox method draws a rounded box on the surface.

object.DrawRoundedBox( _ 
    x1 As Long, _ 
    y1 As Long, _ 
    x2 As Long, _ 
    y2 As Long, _ 
    rw As Long, _ 
    rh As Long)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
x1, y1, x2, y2
Upper-left and lower-right points of the rectangle.
rw
Width of the ellipse used to draw the rounded corners.
rh
Height of the ellipse used to draw the rounded corners.

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.