Exemplo n.º 1
0
        public HBRUSH(COLORREF color)
        {
            HBRUSH hbrush = CreateSolidBrush(color.Value);

            SetHandle(hbrush.DangerousGetHandle());
            DangerousOwnsHandle = true;
        }
Exemplo n.º 2
0
 public HBRUSH SelectBrush(HBRUSH brush)
 {
     return (HBRUSH)SelectObject(brush);
 }
Exemplo n.º 3
0
 public bool FillRect(ref RECT rect, HBRUSH brush)
 {
     return FillRect(this, ref rect, brush);
 }
Exemplo n.º 4
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, HBRUSH hbr);
Exemplo n.º 5
0
 public bool FillRect(ref RECT rect, HBRUSH brush)
 {
     return(FillRect(this, ref rect, brush));
 }
Exemplo n.º 6
0
 public HBRUSH SelectBrush(HBRUSH brush)
 {
     return((HBRUSH)SelectObject(brush));
 }
Exemplo n.º 7
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, HBRUSH hbr);