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

            SetHandle(hbrush.DangerousGetHandle());
            DangerousOwnsHandle = true;
        }
Esempio n. 2
0
 public HBRUSH(COLORREF color)
 {
     HBRUSH hbrush = CreateSolidBrush(color.Value);
     this.SetHandle(hbrush.DangerousGetHandle());
     this.DangerousOwnsHandle = true;
 }
 public static extern bool SetTextColor(IntPtr hdcDest, COLORREF crColor);