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

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