Patch 7.4.874
Problem:    MS-Windows: When Vim runs inside another application, the size
            isn't right.
Solution:   When in child mode compute the size differently. (Agorgianitis
            Loukas)
Files:      src/gui_w48.c


*** ../vim-7.4.873/src/gui_w48.c        2015-09-15 17:58:22.760394656 +0200
--- src/gui_w48.c       2015-09-25 14:08:38.914825744 +0200
***************
*** 3335,3351 ****
      RECT      rect;
  
      GetWindowRect(s_hwnd, &rect);
!     gui_resize_shell(rect.right - rect.left
!                       - (GetSystemMetrics(SM_CXFRAME) +
!                          GetSystemMetrics(SM_CXPADDEDBORDER)) * 2,
!                    rect.bottom - rect.top
!                       - (GetSystemMetrics(SM_CYFRAME) +
!                          GetSystemMetrics(SM_CXPADDEDBORDER)) * 2
!                       - GetSystemMetrics(SM_CYCAPTION)
  #ifdef FEAT_MENU
                        - gui_mswin_get_menu_height(FALSE)
  #endif
!           );
  }
  
  /*
--- 3335,3364 ----
      RECT      rect;
  
      GetWindowRect(s_hwnd, &rect);
!     if (win_socket_id == 0)
!     {
!       gui_resize_shell(rect.right - rect.left
!           - (GetSystemMetrics(SM_CXFRAME) +
!              GetSystemMetrics(SM_CXPADDEDBORDER)) * 2,
!           rect.bottom - rect.top
!           - (GetSystemMetrics(SM_CYFRAME) +
!              GetSystemMetrics(SM_CXPADDEDBORDER)) * 2
!           - GetSystemMetrics(SM_CYCAPTION)
! #ifdef FEAT_MENU
!           - gui_mswin_get_menu_height(FALSE)
! #endif
!       );
!     }
!     else
!     {
!       /* Inside another window, don't use the frame and border. */
!       gui_resize_shell(rect.right - rect.left,
!           rect.bottom - rect.top
  #ifdef FEAT_MENU
                        - gui_mswin_get_menu_height(FALSE)
  #endif
!       );
!     }
  }
  
  /*
*** ../vim-7.4.873/src/version.c        2015-09-17 23:20:38.577212536 +0200
--- src/version.c       2015-09-25 14:07:42.195418589 +0200
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     874,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
3. Your bookmark takes 15 minutes to scroll from top to bottom.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui