Platform SDK: DirectX

DirectDrawSurface7.GetForeColor

The DirectDrawSurface7.GetForeColor method returns the foreground color set by DirectDrawSurface7.SetForeColor.

object.GetForeColor() As Long

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.

Return Values

If the method succeeds, it returns the foreground color set by DirectDrawSurface7.SetForeColor.

Error Codes

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