コード例 #1
0
ファイル: HBRUSH.cs プロジェクト: Trezamere/Practices
 public HBRUSH(COLORREF color)
 {
     HBRUSH hbrush = CreateSolidBrush(color.Value);
     this.SetHandle(hbrush.DangerousGetHandle());
     this.DangerousOwnsHandle = true;
 }
コード例 #2
0
ファイル: NativeMethods.cs プロジェクト: Trezamere/Practices
 public static extern bool SetTextColor(IntPtr hdcDest, COLORREF crColor);