Mercurial > vim
changeset 1481:0c61c201ba76 v7.1.196
updated for version 7.1-196
author | vimboss |
---|---|
date | Thu, 03 Jan 2008 19:45:15 +0000 |
parents | 801d55448282 |
children | b0f8f28a67c2 |
files | src/gui_w32.c src/version.c |
diffstat | 2 files changed, 18 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -987,6 +987,11 @@ set_tabline_font(void) { LPNMTTDISPINFOW lpdi = (LPNMTTDISPINFOW)lParam; + /* Set the maximum width, this also enables using + * \n for line break. */ + SendMessage(lpdi->hdr.hwndFrom, TTM_SETMAXTIPWIDTH, + 0, 500); + tt_text = enc_to_ucs2(str, NULL); lpdi->lpszText = tt_text; /* can't show tooltip if failed */ @@ -996,6 +1001,11 @@ set_tabline_font(void) { LPNMTTDISPINFO lpdi = (LPNMTTDISPINFO)lParam; + /* Set the maximum width, this also enables using + * \n for line break. */ + SendMessage(lpdi->hdr.hwndFrom, TTM_SETMAXTIPWIDTH, + 0, 500); + if (STRLEN(str) < sizeof(lpdi->szText) || ((tt_text = vim_strsave(str)) == NULL)) vim_strncpy(lpdi->szText, str, @@ -4734,12 +4744,12 @@ Handle_WM_Notify(hwnd, pnmh) cur_beval->showState = ShS_NEUTRAL; break; case TTN_GETDISPINFO: - { - /* if you get there then we have new common controls */ - NMTTDISPINFO_NEW *info = (NMTTDISPINFO_NEW *)pnmh; - info->lpszText = (LPSTR)info->lParam; - info->uFlags |= TTF_DI_SETITEM; - } + { + /* if you get there then we have new common controls */ + NMTTDISPINFO_NEW *info = (NMTTDISPINFO_NEW *)pnmh; + info->lpszText = (LPSTR)info->lParam; + info->uFlags |= TTF_DI_SETITEM; + } break; } }