Beispiel #1
0
        public HBRUSH(COLORREF color)
        {
            HBRUSH hbrush = CreateSolidBrush(color.Value);

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