| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.874 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| 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 |
| |
| |
| |
| |
| |
| *** 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 |
| ! ); |
| ! } |
| } |
| |
| /* |
| |
| |
| |
| *** 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 -- Bram@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 /// |