2 Subject: Patch 7.1.196 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32 GUI: "\n" in a tooltip doesn't cause a line break. (Erik
13 Solution: Use the TTM_SETMAXTIPWIDTH message.
17 *** ../vim-7.1.195/src/gui_w32.c Thu Aug 30 12:24:21 2007
18 --- src/gui_w32.c Thu Jan 3 13:56:26 2008
23 LPNMTTDISPINFOW lpdi = (LPNMTTDISPINFOW)lParam;
25 + /* Set the maximum width, this also enables using
26 + * \n for line break. */
27 + SendMessage(lpdi->hdr.hwndFrom, TTM_SETMAXTIPWIDTH,
30 tt_text = enc_to_ucs2(str, NULL);
31 lpdi->lpszText = tt_text;
32 /* can't show tooltip if failed */
37 LPNMTTDISPINFO lpdi = (LPNMTTDISPINFO)lParam;
39 + /* Set the maximum width, this also enables using
40 + * \n for line break. */
41 + SendMessage(lpdi->hdr.hwndFrom, TTM_SETMAXTIPWIDTH,
44 if (STRLEN(str) < sizeof(lpdi->szText)
45 || ((tt_text = vim_strsave(str)) == NULL))
46 vim_strncpy(lpdi->szText, str,
49 cur_beval->showState = ShS_NEUTRAL;
53 ! /* if you get there then we have new common controls */
54 ! NMTTDISPINFO_NEW *info = (NMTTDISPINFO_NEW *)pnmh;
55 ! info->lpszText = (LPSTR)info->lParam;
56 ! info->uFlags |= TTF_DI_SETITEM;
62 cur_beval->showState = ShS_NEUTRAL;
66 ! /* if you get there then we have new common controls */
67 ! NMTTDISPINFO_NEW *info = (NMTTDISPINFO_NEW *)pnmh;
68 ! info->lpszText = (LPSTR)info->lParam;
69 ! info->uFlags |= TTF_DI_SETITEM;
74 *** ../vim-7.1.195/src/version.c Thu Jan 3 20:21:34 2008
75 --- src/version.c Thu Jan 3 20:43:22 2008
79 { /* Add new patch number below this line */
85 Shit makes the flowers grow and that's beautiful
87 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
88 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
89 \\\ download, build and distribute -- http://www.A-A-P.org ///
90 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///