To: vim-dev@vim.org Subject: Patch 6.1b.025 (extra) Fcc: outbox From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1b.025 (extra) Problem: Win32: When closing gvim while it is minimized and has a changed file, the file-changed dialog pops up in a corner of the screen. Solution: Put the dialog in the middle of the screen. Files: src/gui_w48.c *** ../vim61b.024/src/gui_w48.c Mon Feb 25 09:37:01 2002 --- src/gui_w48.c Mon Mar 18 21:46:29 2002 *************** *** 1952,1958 **** wChild = rChild.right - rChild.left; hChild = rChild.bottom - rChild.top; ! GetWindowRect(hwndParent, &rParent); wParent = rParent.right - rParent.left; hParent = rParent.bottom - rParent.top; --- 1952,1962 ---- wChild = rChild.right - rChild.left; hChild = rChild.bottom - rChild.top; ! /* If Vim is minimized put the window in the middle of the screen. */ ! if (IsMinimized(hwndParent)) ! SystemParametersInfo(SPI_GETWORKAREA, 0, &rParent, 0); ! else ! GetWindowRect(hwndParent, &rParent); wParent = rParent.right - rParent.left; hParent = rParent.bottom - rParent.top; *** ../vim61b.024/src/version.c Mon Mar 18 21:08:55 2002 --- src/version.c Mon Mar 18 21:48:40 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 25, /**/ -- Arthur pulls Pin out. The MONK blesses the grenade as ... ARTHUR: (quietly) One, two, five ... GALAHAD: Three, sir! ARTHUR: Three. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///