public HDc(HWnd window, bool entireWindow) { if (entireWindow) { value = User32.GetWindowDC(window).value; } else { value = User32.GetDC(window).value; } }
public static IntPtr GetClassLongPtr(HWnd hWnd, GetClassLongVal nIndex) { if (IntPtr.Size > 4) { return(GetClassLong64(hWnd, nIndex)); } else { return(GetClassLong32(hWnd, nIndex)); } }
public static extern RegionType ScrollWindowEx(HWnd hwnd, int dx, int dy, ref RECT Scroll, ref RECT Clip, HRgn Update, out RECT lprcUpdate, Enum.ShowWindow flags);
public static extern Boolean GetWindowRect(HWnd hwnd, out RECT lpRect);
public static extern IntPtr GetClassLong64(HWnd hWnd, GetClassLongVal nIndex);
public static extern IntPtr GetClassLong(HWnd hwnd, IntPtr nIndex);
public static extern IntPtr SendMessage(HWnd hwnd, WindowsMessage message, int wParam, IntPtr lParam);
public static extern bool GetWindowInfo(HWnd hwnd, ref WindowInfo info);
public HDc(HWnd window) { value = User32.GetDC(window).value; }
public static extern int GetWindowText(HWnd hwnd, StringBuilder result, int maxCount);
public static extern bool EnumDesktopWindows(HWnd hDesktop, EnumWindowsProc lpfn, IntPtr lParam);
public static extern HDc GetWindowDC(HWnd window);
public static extern BOOL ReleaseDC(HWnd window, HDc dc);
public static extern int ScreenToClient(HWnd window, ref Gdi.POINT point);
public static extern BOOL ClientToScreen(HWnd window, ref Gdi.POINT point);
public static extern RegionType ScrollWindowEx(HWnd hwnd, int dx, int dy, IntPtr Scroll, IntPtr Clip, HRgn Update, IntPtr nullLprcUpdate, Enum.ShowWindow flags);
public static extern int GetWindowTextLength(HWnd hwnd);
public BOOL Release(HWnd window) { return(User32.ReleaseDC(window, this)); }