예제 #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;
        }
예제 #2
0
 private static extern HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hgdiobj);
예제 #3
0
 private static extern HDC _CreateCompatibleDC(HDC hdc);
예제 #4
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, HBRUSH hbr);
예제 #5
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, int color);
예제 #6
0
 private static extern HDC _CreateCompatibleDC(HDC hdc);
예제 #7
0
 private static extern bool DeleteDC(HDC hdc);
예제 #8
0
 private static extern bool DeleteDC(HDC hdc);
예제 #9
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, int color);
예제 #10
0
 private static extern bool FillRect(HDC hDC, ref RECT lprc, HBRUSH hbr);
예제 #11
0
 private static extern HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hgdiobj);
 public static extern bool DeleteDC(HDC hdc);