private int[] getWindowDimensions() { IntPtr acWindow = this.Handle; ExtraMegaBlob.EnumWindowsItem enumw = new EnumWindowsItem(acWindow); return new int[] { enumw.Size.Width, enumw.Size.Height }; }
/// <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); }
private int[] getWindowLocation() { IntPtr acWindow = this.Handle; ExtraMegaBlob.EnumWindowsItem enumw = new EnumWindowsItem(acWindow); return new int[] { enumw.Location.X, enumw.Location.Y }; }