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