Example #1
0
        public VistaWindow(IntPtr handle, string title)
        {
            this.fHandle = handle;
            this.fOpacity = 1;

            this.fScaledSize = new PSize();
            this.fRectangle = new Rect(0, 0, 0, 0);
            this.fApplicationInstance = User32.GetWindowLong(this.Handle, VistaDwm.GWL_HINSTANCE);

            this.fThumbnailProperties = new ThumbnailProperties();
            this.fThumbnailProperties.fVisible = true;
            this.fThumbnailProperties.dwFlags = VistaDwm.DWM_TNP_VISIBLE | VistaDwm.DWM_TNP_RECTDESTINATION | VistaDwm.DWM_TNP_OPACITY;

            this.RefreshVisibleProperties(title);
        }
 public WindowPositionTransition(VistaWindow window, Rect start, Rect end)
 {
     this.fWindow = window;
     this.fStartRect = start;
     this.fEndRect = end;
 }
Example #3
0
 public static extern bool GetWindowRect(IntPtr hWnd, ref Rect rect);