|
Karsten Hopp |
e1f680 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
e1f680 |
Subject: Patch 7.0.170 (extra)
|
|
Karsten Hopp |
e1f680 |
Fcc: outbox
|
|
Karsten Hopp |
e1f680 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e1f680 |
Mime-Version: 1.0
|
|
Karsten Hopp |
e1f680 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
e1f680 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e1f680 |
------------
|
|
Karsten Hopp |
e1f680 |
|
|
Karsten Hopp |
e1f680 |
Patch 7.0.170 (extra)
|
|
Karsten Hopp |
e1f680 |
Problem: Win32: Using "gvim --remote-tab foo" when gvim is minimized while
|
|
Karsten Hopp |
e1f680 |
it previously was maximized, un-maximizing doesn't work properly.
|
|
Karsten Hopp |
e1f680 |
And the labels are not displayed properly when 'encoding' is
|
|
Karsten Hopp |
e1f680 |
utf-8.
|
|
Karsten Hopp |
e1f680 |
Solution: When minimized check for SW_SHOWMINIMIZED. When updating the tab
|
|
Karsten Hopp |
e1f680 |
pages line use TCM_SETITEMW instead of TCM_INSERTITEMW. (Liu
|
|
Karsten Hopp |
e1f680 |
Yubao)
|
|
Karsten Hopp |
e1f680 |
Files: src/gui_w48.c
|
|
Karsten Hopp |
e1f680 |
|
|
Karsten Hopp |
e1f680 |
|
|
Karsten Hopp |
e1f680 |
*** ../vim-7.0.169/src/gui_w48.c Tue Nov 7 19:05:36 2006
|
|
Karsten Hopp |
e1f680 |
--- src/gui_w48.c Mon Nov 27 22:26:15 2006
|
|
Karsten Hopp |
e1f680 |
***************
|
|
Karsten Hopp |
e1f680 |
*** 2405,2412 ****
|
|
Karsten Hopp |
e1f680 |
tiw.mask = TCIF_TEXT;
|
|
Karsten Hopp |
e1f680 |
tiw.iImage = -1;
|
|
Karsten Hopp |
e1f680 |
tiw.pszText = wstr;
|
|
Karsten Hopp |
e1f680 |
! SendMessage(s_tabhwnd, TCM_INSERTITEMW, (WPARAM)nr,
|
|
Karsten Hopp |
e1f680 |
! (LPARAM)&tiw;;
|
|
Karsten Hopp |
e1f680 |
vim_free(wstr);
|
|
Karsten Hopp |
e1f680 |
}
|
|
Karsten Hopp |
e1f680 |
}
|
|
Karsten Hopp |
e1f680 |
--- 2405,2411 ----
|
|
Karsten Hopp |
e1f680 |
tiw.mask = TCIF_TEXT;
|
|
Karsten Hopp |
e1f680 |
tiw.iImage = -1;
|
|
Karsten Hopp |
e1f680 |
tiw.pszText = wstr;
|
|
Karsten Hopp |
e1f680 |
! SendMessage(s_tabhwnd, TCM_SETITEMW, (WPARAM)nr, (LPARAM)&tiw;;
|
|
Karsten Hopp |
e1f680 |
vim_free(wstr);
|
|
Karsten Hopp |
e1f680 |
}
|
|
Karsten Hopp |
e1f680 |
}
|
|
Karsten Hopp |
e1f680 |
***************
|
|
Karsten Hopp |
e1f680 |
*** 3033,3045 ****
|
|
Karsten Hopp |
e1f680 |
return OK;
|
|
Karsten Hopp |
e1f680 |
}
|
|
Karsten Hopp |
e1f680 |
|
|
Karsten Hopp |
e1f680 |
/*
|
|
Karsten Hopp |
e1f680 |
* Return TRUE if the GUI window is maximized, filling the whole screen.
|
|
Karsten Hopp |
e1f680 |
*/
|
|
Karsten Hopp |
e1f680 |
int
|
|
Karsten Hopp |
e1f680 |
gui_mch_maximized()
|
|
Karsten Hopp |
e1f680 |
{
|
|
Karsten Hopp |
e1f680 |
! return IsZoomed(s_hwnd);
|
|
Karsten Hopp |
e1f680 |
}
|
|
Karsten Hopp |
e1f680 |
|
|
Karsten Hopp |
e1f680 |
/*
|
|
Karsten Hopp |
e1f680 |
--- 3032,3056 ----
|
|
Karsten Hopp |
e1f680 |
return OK;
|
|
Karsten Hopp |
e1f680 |
}
|
|
Karsten Hopp |
e1f680 |
|
|
Karsten Hopp |
e1f680 |
+ #ifndef WPF_RESTORETOMAXIMIZED
|
|
Karsten Hopp |
e1f680 |
+ # define WPF_RESTORETOMAXIMIZED 2 /* just in case someone doesn't have it */
|
|
Karsten Hopp |
e1f680 |
+ #endif
|
|
Karsten Hopp |
e1f680 |
+
|
|
Karsten Hopp |
e1f680 |
/*
|
|
Karsten Hopp |
e1f680 |
* Return TRUE if the GUI window is maximized, filling the whole screen.
|
|
Karsten Hopp |
e1f680 |
*/
|
|
Karsten Hopp |
e1f680 |
int
|
|
Karsten Hopp |
e1f680 |
gui_mch_maximized()
|
|
Karsten Hopp |
e1f680 |
{
|
|
Karsten Hopp |
e1f680 |
! WINDOWPLACEMENT wp;
|
|
Karsten Hopp |
e1f680 |
!
|
|
Karsten Hopp |
e1f680 |
! wp.length = sizeof(WINDOWPLACEMENT);
|
|
Karsten Hopp |
e1f680 |
! if (GetWindowPlacement(s_hwnd, &wp))
|
|
Karsten Hopp |
e1f680 |
! return wp.showCmd == SW_SHOWMAXIMIZED
|
|
Karsten Hopp |
e1f680 |
! || (wp.showCmd == SW_SHOWMINIMIZED
|
|
Karsten Hopp |
e1f680 |
! && wp.flags == WPF_RESTORETOMAXIMIZED);
|
|
Karsten Hopp |
e1f680 |
!
|
|
Karsten Hopp |
e1f680 |
! return 0;
|
|
Karsten Hopp |
e1f680 |
}
|
|
Karsten Hopp |
e1f680 |
|
|
Karsten Hopp |
e1f680 |
/*
|
|
Karsten Hopp |
e1f680 |
*** ../vim-7.0.169/src/version.c Tue Nov 28 16:16:03 2006
|
|
Karsten Hopp |
e1f680 |
--- src/version.c Tue Nov 28 17:16:07 2006
|
|
Karsten Hopp |
e1f680 |
***************
|
|
Karsten Hopp |
e1f680 |
*** 668,669 ****
|
|
Karsten Hopp |
e1f680 |
--- 668,671 ----
|
|
Karsten Hopp |
e1f680 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e1f680 |
+ /**/
|
|
Karsten Hopp |
e1f680 |
+ 170,
|
|
Karsten Hopp |
e1f680 |
/**/
|
|
Karsten Hopp |
e1f680 |
|
|
Karsten Hopp |
e1f680 |
--
|
|
Karsten Hopp |
e1f680 |
Veni, Vidi, Video -- I came, I saw, I taped what I saw.
|
|
Karsten Hopp |
e1f680 |
|
|
Karsten Hopp |
e1f680 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e1f680 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e1f680 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
e1f680 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|