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; }
private static extern HDC _CreateCompatibleDC(HDC hdc);
private static extern HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hgdiobj);
private static extern bool FillRect(HDC hDC, ref RECT lprc, int color);
private static extern bool FillRect(HDC hDC, ref RECT lprc, HBRUSH hbr);
private static extern bool DeleteDC(HDC hdc);
public static extern bool DeleteDC(HDC hdc);