Karsten Hopp 4da47b
To: vim_dev@googlegroups.com
Karsten Hopp 4da47b
Subject: Patch 7.4.874
Karsten Hopp 4da47b
Fcc: outbox
Karsten Hopp 4da47b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4da47b
Mime-Version: 1.0
Karsten Hopp 4da47b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 4da47b
Content-Transfer-Encoding: 8bit
Karsten Hopp 4da47b
------------
Karsten Hopp 4da47b
Karsten Hopp 4da47b
Patch 7.4.874
Karsten Hopp 4da47b
Problem:    MS-Windows: When Vim runs inside another application, the size
Karsten Hopp 4da47b
            isn't right.
Karsten Hopp 4da47b
Solution:   When in child mode compute the size differently. (Agorgianitis
Karsten Hopp 4da47b
            Loukas)
Karsten Hopp 4da47b
Files:      src/gui_w48.c
Karsten Hopp 4da47b
Karsten Hopp 4da47b
Karsten Hopp 4da47b
*** ../vim-7.4.873/src/gui_w48.c	2015-09-15 17:58:22.760394656 +0200
Karsten Hopp 4da47b
--- src/gui_w48.c	2015-09-25 14:08:38.914825744 +0200
Karsten Hopp 4da47b
***************
Karsten Hopp 4da47b
*** 3335,3351 ****
Karsten Hopp 4da47b
      RECT	rect;
Karsten Hopp 4da47b
  
Karsten Hopp 4da47b
      GetWindowRect(s_hwnd, &rect);
Karsten Hopp 4da47b
!     gui_resize_shell(rect.right - rect.left
Karsten Hopp 4da47b
! 			- (GetSystemMetrics(SM_CXFRAME) +
Karsten Hopp 4da47b
! 			   GetSystemMetrics(SM_CXPADDEDBORDER)) * 2,
Karsten Hopp 4da47b
! 		     rect.bottom - rect.top
Karsten Hopp 4da47b
! 			- (GetSystemMetrics(SM_CYFRAME) +
Karsten Hopp 4da47b
! 			   GetSystemMetrics(SM_CXPADDEDBORDER)) * 2
Karsten Hopp 4da47b
! 			- GetSystemMetrics(SM_CYCAPTION)
Karsten Hopp 4da47b
  #ifdef FEAT_MENU
Karsten Hopp 4da47b
  			- gui_mswin_get_menu_height(FALSE)
Karsten Hopp 4da47b
  #endif
Karsten Hopp 4da47b
! 	    );
Karsten Hopp 4da47b
  }
Karsten Hopp 4da47b
  
Karsten Hopp 4da47b
  /*
Karsten Hopp 4da47b
--- 3335,3364 ----
Karsten Hopp 4da47b
      RECT	rect;
Karsten Hopp 4da47b
  
Karsten Hopp 4da47b
      GetWindowRect(s_hwnd, &rect);
Karsten Hopp 4da47b
!     if (win_socket_id == 0)
Karsten Hopp 4da47b
!     {
Karsten Hopp 4da47b
! 	gui_resize_shell(rect.right - rect.left
Karsten Hopp 4da47b
! 	    - (GetSystemMetrics(SM_CXFRAME) +
Karsten Hopp 4da47b
! 	       GetSystemMetrics(SM_CXPADDEDBORDER)) * 2,
Karsten Hopp 4da47b
! 	    rect.bottom - rect.top
Karsten Hopp 4da47b
! 	    - (GetSystemMetrics(SM_CYFRAME) +
Karsten Hopp 4da47b
! 	       GetSystemMetrics(SM_CXPADDEDBORDER)) * 2
Karsten Hopp 4da47b
! 	    - GetSystemMetrics(SM_CYCAPTION)
Karsten Hopp 4da47b
! #ifdef FEAT_MENU
Karsten Hopp 4da47b
! 	    - gui_mswin_get_menu_height(FALSE)
Karsten Hopp 4da47b
! #endif
Karsten Hopp 4da47b
! 	);
Karsten Hopp 4da47b
!     }
Karsten Hopp 4da47b
!     else
Karsten Hopp 4da47b
!     {
Karsten Hopp 4da47b
! 	/* Inside another window, don't use the frame and border. */
Karsten Hopp 4da47b
! 	gui_resize_shell(rect.right - rect.left,
Karsten Hopp 4da47b
! 	    rect.bottom - rect.top
Karsten Hopp 4da47b
  #ifdef FEAT_MENU
Karsten Hopp 4da47b
  			- gui_mswin_get_menu_height(FALSE)
Karsten Hopp 4da47b
  #endif
Karsten Hopp 4da47b
! 	);
Karsten Hopp 4da47b
!     }
Karsten Hopp 4da47b
  }
Karsten Hopp 4da47b
  
Karsten Hopp 4da47b
  /*
Karsten Hopp 4da47b
*** ../vim-7.4.873/src/version.c	2015-09-17 23:20:38.577212536 +0200
Karsten Hopp 4da47b
--- src/version.c	2015-09-25 14:07:42.195418589 +0200
Karsten Hopp 4da47b
***************
Karsten Hopp 4da47b
*** 743,744 ****
Karsten Hopp 4da47b
--- 743,746 ----
Karsten Hopp 4da47b
  {   /* Add new patch number below this line */
Karsten Hopp 4da47b
+ /**/
Karsten Hopp 4da47b
+     874,
Karsten Hopp 4da47b
  /**/
Karsten Hopp 4da47b
Karsten Hopp 4da47b
-- 
Karsten Hopp 4da47b
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 4da47b
3. Your bookmark takes 15 minutes to scroll from top to bottom.
Karsten Hopp 4da47b
Karsten Hopp 4da47b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4da47b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4da47b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 4da47b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///