コード例 #1
0
 private int[] getWindowDimensions()
 {
     IntPtr acWindow = this.Handle;
     ExtraMegaBlob.EnumWindowsItem enumw = new EnumWindowsItem(acWindow);
     return new int[] { enumw.Size.Width, enumw.Size.Height };
 }
コード例 #2
0
        /// <summary>
        /// Add a new Window to the collection.  Intended for
        /// internal use by EnumWindows only.
        /// </summary>
        /// <param name="hWnd">Window handle to add</param>
        public void Add(IntPtr hWnd)
        {
            EnumWindowsItem item = new EnumWindowsItem(hWnd);

            this.InnerList.Add(item);
        }
コード例 #3
0
 private int[] getWindowLocation()
 {
     IntPtr acWindow = this.Handle;
     ExtraMegaBlob.EnumWindowsItem enumw = new EnumWindowsItem(acWindow);
     return new int[] { enumw.Location.X, enumw.Location.Y };
 }
コード例 #4
0
 /// <summary>
 /// Add a new Window to the collection.  Intended for
 /// internal use by EnumWindows only.
 /// </summary>
 /// <param name="hWnd">Window handle to add</param>
 public void Add(IntPtr hWnd)
 {
     EnumWindowsItem item = new EnumWindowsItem(hWnd);
     this.InnerList.Add(item);
 }