public HBRUSH(COLORREF color) { HBRUSH hbrush = CreateSolidBrush(color.Value); SetHandle(hbrush.DangerousGetHandle()); DangerousOwnsHandle = true; }
public HBRUSH SelectBrush(HBRUSH brush) { return (HBRUSH)SelectObject(brush); }
public bool FillRect(ref RECT rect, HBRUSH brush) { return FillRect(this, ref rect, brush); }
private static extern bool FillRect(HDC hDC, ref RECT lprc, HBRUSH hbr);
public bool FillRect(ref RECT rect, HBRUSH brush) { return(FillRect(this, ref rect, brush)); }
public HBRUSH SelectBrush(HBRUSH brush) { return((HBRUSH)SelectObject(brush)); }