diff options
Diffstat (limited to 'GdiTest/Win32GDI.cs')
-rw-r--r-- | GdiTest/Win32GDI.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/GdiTest/Win32GDI.cs b/GdiTest/Win32GDI.cs index 0e788f9..a6f8fd7 100644 --- a/GdiTest/Win32GDI.cs +++ b/GdiTest/Win32GDI.cs @@ -38,6 +38,12 @@ namespace GdiTest [DllImport("gdi32")] public static extern IntPtr CreatePen(int fnPenStyle, int nWidth, int crColor); + [DllImport("gdi32")] + public static extern IntPtr CreateSolidBrush(int crColor); + + [DllImport("gdi32")] + public static extern bool Ellipse(IntPtr hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect); + [DllImport("gdi32.dll")] public static extern int BitBlt( IntPtr hdcDest, @@ -165,6 +171,22 @@ namespace GdiTest return (IntPtr) null; } + public override bool Ellipse(IntPtr hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect) + { + if (available) + return Callbacks.Ellipse(hdc, nLeftRect, nTopRect, nRightRect, nBottomRect); + else + return false; + } + + public override IntPtr CreateSolidBrush(int crColor) + { + if (available) + return Callbacks.CreateSolidBrush(crColor); + else + return (IntPtr) null; + } + public override int BitBlt(IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, System.Int32 dwRop) { |