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