createbrushindirect (gdi32)
Last changed: anonymous

.
Summary

C# Signature:

[DllImport("gdi32.dll")]
static extern IntPtr CreateBrushIndirect([In] ref LOGBRUSH lplb);

VB Signature:

<DllImport("gdi32.dll", SetLastError:=True)> _

Private Shared Function CreateBrushIndirect( _

  ByRef Brush As LOGBRUSH) As IntPtr

End Function

Private Declare Function CreateBrushIndirect Lib "gdi32"( _

  ByRef Brush As LOGBRUSH) As IntPtr

User-Defined Types:

C#

private struct LOGBRUSH

{

  internal int style;
  internal int color;
  internal int hatch;

}

VB

Private Structure LOGBRUSH

  Dim Style As Integer
  Dim Color As Integer
  Dim Hatch As Integer

End Structure

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation