Ejemplo n.º 1
0
 public HDc(HWnd window, bool entireWindow)
 {
     if (entireWindow)
     {
         value = User32.GetWindowDC(window).value;
     }
     else
     {
         value = User32.GetDC(window).value;
     }
 }
Ejemplo n.º 2
0
 public static IntPtr GetClassLongPtr(HWnd hWnd, GetClassLongVal nIndex)
 {
     if (IntPtr.Size > 4)
     {
         return(GetClassLong64(hWnd, nIndex));
     }
     else
     {
         return(GetClassLong32(hWnd, nIndex));
     }
 }
Ejemplo n.º 3
0
 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);
Ejemplo n.º 4
0
 public static extern Boolean GetWindowRect(HWnd hwnd, out RECT lpRect);
Ejemplo n.º 5
0
 public static extern IntPtr GetClassLong64(HWnd hWnd, GetClassLongVal nIndex);
Ejemplo n.º 6
0
 public static extern IntPtr GetClassLong(HWnd hwnd, IntPtr nIndex);
Ejemplo n.º 7
0
 public static extern IntPtr SendMessage(HWnd hwnd, WindowsMessage message, int wParam, IntPtr lParam);
Ejemplo n.º 8
0
 public static extern bool GetWindowInfo(HWnd hwnd, ref WindowInfo info);
Ejemplo n.º 9
0
 public HDc(HWnd window)
 {
     value = User32.GetDC(window).value;
 }
Ejemplo n.º 10
0
 public static extern int GetWindowText(HWnd hwnd, StringBuilder result, int maxCount);
Ejemplo n.º 11
0
 public static extern bool EnumDesktopWindows(HWnd hDesktop,
                                              EnumWindowsProc lpfn, IntPtr lParam);
Ejemplo n.º 12
0
 public static extern HDc GetWindowDC(HWnd window);
Ejemplo n.º 13
0
 public static extern BOOL ReleaseDC(HWnd window, HDc dc);
Ejemplo n.º 14
0
 public static extern int ScreenToClient(HWnd window, ref Gdi.POINT point);
Ejemplo n.º 15
0
 public static extern BOOL ClientToScreen(HWnd window, ref Gdi.POINT point);
Ejemplo n.º 16
0
 public static extern RegionType ScrollWindowEx(HWnd hwnd, int dx, int dy, IntPtr Scroll, IntPtr Clip, HRgn Update, IntPtr nullLprcUpdate, Enum.ShowWindow flags);
Ejemplo n.º 17
0
 public static extern int GetWindowTextLength(HWnd hwnd);
Ejemplo n.º 18
0
 public BOOL Release(HWnd window)
 {
     return(User32.ReleaseDC(window, this));
 }