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