CGDIBrush::CGDIBrush

CGDIBrush::CGDIBrush(HBRUSHh, boolbOwn)

Attach constructor. Initializes a new instance of CGDIBrush and optionally attaches a previously existing brush handle. The ownership of this handle is determined by the bOwn parameter.

Defined in: GDIObjects.h

Parameters

h

Handle to existing GDI brush, or NULL if the object is being created in detached state.

bOwn

Ownership flag. If true, this instance takes ownership of the handle, otherwise the instance just wraps the handle but does not control its life time.