Beispiel #1
0
        public static HDC CreateCompatibleDC(HDC hdc)
        {
            HDC value = null;

            if (hdc == null)
            {
                value = _CreateCompatibleDC(IntPtr.Zero);
            }
            else
            {
                value = _CreateCompatibleDC(hdc);
            }

            if (value != null && value.DangerousGetHandle() != IntPtr.Zero)
            {
                value.DangerousOwnsHandle = true;
            }

            return value;
        }
Beispiel #2
0
 private static extern HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hgdiobj);
Beispiel #3
0
 private static extern HDC _CreateCompatibleDC(HDC hdc);
Beispiel #4
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, HBRUSH hbr);
Beispiel #5
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, int color);
Beispiel #6
0
 private static extern HDC _CreateCompatibleDC(HDC hdc);
Beispiel #7
0
 private static extern bool DeleteDC(HDC hdc);
Beispiel #8
0
 private static extern bool DeleteDC(HDC hdc);
Beispiel #9
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, int color);
Beispiel #10
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, HBRUSH hbr);
Beispiel #11
0
 private static extern HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hgdiobj);
 public static extern bool DeleteDC(HDC hdc);